regulator: Fix setting new voltage in s5m8767_set_voltage
authorAxel Lin <axel.lin@gmail.com>
Mon, 19 Mar 2012 04:22:10 +0000 (12:22 +0800)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 13:06:48 +0000 (18:06 +0530)
commit16245012367cb9d4e6848634a218578a6718c93f
treec2958504640b0b4180d852e3b89cf79fecd696fc
parent5661c320b5ae16be99b767bb936cfccbc99f6b10
regulator: Fix setting new voltage in s5m8767_set_voltage

Current code does not really update the register with new value, fix it.
I rename the variable i to sel for better readability.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c