regulator: core: Refactor regulator_list_voltage()
authorMaciej Purski <m.purski@samsung.com>
Mon, 22 Jan 2018 14:30:07 +0000 (15:30 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 15:48:08 +0000 (15:48 +0000)
commit3d67fe950707a930664c5673ecc026f1bb497136
treebbcb529d0a79b103db98750aea5be63da8ebc8b9
parent148096af0bf381c78afe253c07ef1c77778f0e68
regulator: core: Refactor regulator_list_voltage()

Change _regulator_list_voltage() argument from regulator to
regulator_dev in order to provide better separation of core layers.
Allow calling _regulator_list_voltage() from functions, with
regulator_dev argument. This refactoring is needed in order to
implement setting voltage of coupled regulators.

Signed-off-by: Maciej Purski <m.purski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c