regulator: pwm-regulator: get voltage and duty table from dts
commitaa66cc6630a4088e84b64992aa5f137711ae45fa
authorChris Zhong <zyw@rock-chips.com>
Sun, 28 Sep 2014 02:28:53 +0000 (28 10:28 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 28 Sep 2014 10:35:53 +0000 (28 11:35 +0100)
treece2c2439297c720528c8e3aeeca6c6673f483aa0
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9
regulator: pwm-regulator: get voltage and duty table from dts

rename st-pwm to pwm-regulator. And support getting voltage & duty table from
device tree, other platforms can also use this driver without any modify.

Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Tested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile
drivers/regulator/pwm-regulator.c [new file with mode: 0644]
drivers/regulator/st-pwm.c [deleted file]