]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: bd71815: Get rid of struct bd71815_pmic
authorAxel Lin <axel.lin@ingics.com>
Mon, 7 Jun 2021 14:30:02 +0000 (22:30 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Jun 2021 12:37:46 +0000 (13:37 +0100)
commit563707a63bb7e0bffd79d6491142daf3e86eecfc
tree0738a786190a9dcd35b1c72d47140a9ef27d0faa
parent0cfdae13fc33e0e06e25029dd1b9e5cd97c57734
regulator: bd71815: Get rid of struct bd71815_pmic

The content of bd71815_regulators is never changed, no need to duplicate
it, thus remove descs[BD71815_REGULATOR_CNT].
The *regmap, *dev and *rdev[BD71815_REGULATOR_CNT] are not really needed.
The *gps is unused.

Thus the struct bd71815_pmic can be removed.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/20210607143002.1600017-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd71815-regulator.c