]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6d3ee788c9f27f2437a08b64fa09d05b7f0526b
tree8b03688c735d90ab9dfb6158f58aba77542f54bd
parent0348b298df372b9d4ca6b237146a55fd8c20daa1
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