]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f926feaf340e119fb6de9d4987374e63f47ff28
tree263226aef8f2f77e8a8c4f14fa43cbfe62ecb509
parentcd21ba4513712dd12a41b189d830b174ad0f30a4
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