mfd: da9063: Replace model with type
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 11 Jun 2018 11:58:45 +0000 (13:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 4 Jul 2018 06:16:25 +0000 (07:16 +0100)
commit492510dd7d39794e809d8218a2839e857c101ce5
tree41dad2e3407fbe25d683c457549eaa0ca0385183
parentdf7878f9dc77a9f630893811f0401bc021df4fbf
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>
drivers/mfd/da9063-core.c
drivers/mfd/da9063-i2c.c
drivers/regulator/da9063-regulator.c
include/linux/mfd/da9063/core.h