regulator: anatop: Remove checking control_reg in [set|get]_voltage_sel
authorAxel Lin <axel.lin@ingics.com>
Sat, 22 Feb 2014 04:53:18 +0000 (12:53 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 18 Mar 2014 18:35:56 +0000 (18:35 +0000)
commit114c5748d540335657fc782cb4d61fb74ae4ac00
treeb42e0199762badf13dbf82464c6eda905a8a9ddb
parentd38018f2019c7d01660ca72eab055f79f4547f59
regulator: anatop: Remove checking control_reg in [set|get]_voltage_sel

Remove checking control_reg in [set|get]_voltage_sel and then convert to use
regulator_[set|get]_voltage_sel_regmap for [set|get]_voltage_sel callbacks.

The anatop-reg-offset property is a required property rather than optional
property. So the question is what is the meaning of setting anatop-reg-offset
to 0? If 0 is a valid setting for anatop-reg-offset and it has special meaning,
we had better document it in the binding document. Otherwise, remove the testing
for control_reg in the driver.

No anatop voltage regulator node in the dts files set anatop-reg-offset to 0.
So I think it's safe to remove testing if control_reg is 0.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/anatop-regulator.c