regulator: ab8500-ext: Provide a set_voltage call-back operation
authorLee Jones <lee.jones@linaro.org>
Fri, 7 Jun 2013 16:11:25 +0000 (17:11 +0100)
committerMark Brown <broonie@linaro.org>
Fri, 7 Jun 2013 16:52:35 +0000 (17:52 +0100)
commit33fb880249b1f2f349461c64d19bdfe2e969c1ba
treec6124af69aa9f891dfd54eed961bfca7856d0e6d
parent1e1bb58da2ae080002578c35f80495dadda50940
regulator: ab8500-ext: Provide a set_voltage call-back operation

When registering regulators which have a single voltage through Device
Tree, the framework insists that the specified voltage is actually set.
Well in order to do that we need to provide this call-back, where we
check that the value is sane and return without error. Not that the
selector isn't populated, but in our case list_voltage doesn't actually
use it, so we're good.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/ab8500-ext.c