regulator: bd718x7: Split driver to common and bd718x7 specific parts
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Mon, 20 Jan 2020 13:44:45 +0000 (15:44 +0200)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:22:53 +0000 (07:22 +0000)
commit21b72156ede8b7da0367c6338574c1bc40439157
tree263226aef8f2f77e8a8c4f14fa43cbfe62ecb509
parentae866dec742687b0bff407013b91badba524f7ee
regulator: bd718x7: Split driver to common and bd718x7 specific parts

Few ROHM PMICs allow setting the voltage states for different system states
like RUN, IDLE, SUSPEND and LPSR. States are then changed via SoC specific
mechanisms. bd718x7 driver implemented device-tree parsing functions for
these state specific voltages. The parsing functions can be re-used by
other ROHM chip drivers like bd71828. Split the generic functions from
bd718x7-regulator.c to rohm-regulator.c and export them for other modules
to use.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/bd718x7-regulator.c
drivers/regulator/rohm-regulator.c [new file with mode: 0644]
include/linux/mfd/rohm-generic.h