regulator: bd718x7: Simplify the code by removing struct bd718xx_pmic_inits
authorAxel Lin <axel.lin@ingics.com>
Wed, 8 Jan 2020 01:42:55 +0000 (09:42 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 13 Jan 2020 15:03:37 +0000 (15:03 +0000)
commitb389ceae4a8fa4c91dd3543516cdfd49ece7e4ba
tree8b03688c735d90ab9dfb6158f58aba77542f54bd
parentebf652b408200504194be32ad0a3f5bb49d6000a
regulator: bd718x7: Simplify the code by removing struct bd718xx_pmic_inits

Nowdays ROHM_CHIP_TYPE_AMOUNT includes not only BD71837/BD71847 but also
BD70528/BD71828 which are not supported by this driver. So it seems not
necessay to have pmic_regulators[ROHM_CHIP_TYPE_AMOUNT] as mapping table.
Simplify the code by removing struct bd718xx_pmic_inits and
pmic_regulators[ROHM_CHIP_TYPE_AMOUNT].

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200108014256.11282-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd718x7-regulator.c