regulator: make regulator voltage be an array to support more states
authorChunyan Zhang <zhang.chunyan@linaro.org>
Fri, 26 Jan 2018 13:08:44 +0000 (21:08 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jan 2018 14:43:45 +0000 (14:43 +0000)
commitc360a6df02cdba47c0590ffc7d15ec6687183e8c
treefcf591be1d9ec3afd439e8e7d397309649cbf6f6
parent057c76440c791eb31eb68f3b003f67d00fcce51a
regulator: make regulator voltage be an array to support more states

Some regulator consumers would like to make the regulator device
keeping a voltage range output when the system entering into
suspend states.

Making regulator voltage be an array can allow consumers to set voltage
for normal state as well as for suspend states through the same code.

Signed-off-by: Chunyan Zhang <zhang.chunyan@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c
drivers/regulator/internal.h