summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/da9063-core.c
diff options
context:
space:
mode:
authorMarek Vasut2018-06-11 13:58:45 +0200
committerLee Jones2018-07-04 08:16:25 +0200
commit492510dd7d39794e809d8218a2839e857c101ce5 (patch)
tree41dad2e3407fbe25d683c457549eaa0ca0385183 /drivers/mfd/da9063-core.c
parentmfd: da9063: Rename PMIC_DA9063 to PMIC_CHIP_ID_DA9063 (diff)
downloadkernel-qcow2-linux-492510dd7d39794e809d8218a2839e857c101ce5.tar.gz
kernel-qcow2-linux-492510dd7d39794e809d8218a2839e857c101ce5.tar.xz
kernel-qcow2-linux-492510dd7d39794e809d8218a2839e857c101ce5.zip
mfd: da9063: Replace model with type
The model number stored in the struct da9063 is the same for all variants of the da9063 since it is the chip ID, which is always the same. Replace that with a separate identifier instead, which allows us to discern the DA9063 variants by setting the type based on either DT match or otherwise. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Acked-by: Mark Brown <broonie@kernel.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/da9063-core.c')
-rw-r--r--drivers/mfd/da9063-core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c
index c54777cc2f12..ded59990f18c 100644
--- a/drivers/mfd/da9063-core.c
+++ b/drivers/mfd/da9063-core.c
@@ -215,7 +215,6 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq)
return -ENODEV;
}
- da9063->model = model;
da9063->variant_code = variant_code;
ret = da9063_irq_init(da9063);