regulator: as3722: Fix incorrect parameter initialization
authorSachin Kamat <sachin.kamat@samsung.com>
Tue, 24 Jun 2014 08:24:43 +0000 (13:54 +0530)
committerMark Brown <broonie@linaro.org>
Tue, 24 Jun 2014 15:09:44 +0000 (16:09 +0100)
commita181c1c702aea397b382aa5b11ebe04648b733e5
tree0866ab55c73b0df6956c68abdf91cb3a9427882f
parent7171511eaec5bf23fb06078f59784a3a0626b38f
regulator: as3722: Fix incorrect parameter initialization

'name' field was re-initialized and getting overwritten in some
cases possibly due to a typo. Code inspection says the second time
it should be 'sname' instead of 'name'. Replace it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/as3722-regulator.c