aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@samsung.com>2014-06-24 04:24:43 -0400
committerMark Brown <broonie@linaro.org>2014-06-24 11:09:44 -0400
commita181c1c702aea397b382aa5b11ebe04648b733e5 (patch)
tree0866ab55c73b0df6956c68abdf91cb3a9427882f /drivers/regulator
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/as3722-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/as3722-regulator.c b/drivers/regulator/as3722-regulator.c
index 85585219ce82..51c6bf9badfc 100644
--- a/drivers/regulator/as3722-regulator.c
+++ b/drivers/regulator/as3722-regulator.c
@@ -219,7 +219,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = {
219 { 219 {
220 .regulator_id = AS3722_REGULATOR_ID_LDO3, 220 .regulator_id = AS3722_REGULATOR_ID_LDO3,
221 .name = "as3722-ldo3", 221 .name = "as3722-ldo3",
222 .name = "vin-ldo3-4", 222 .sname = "vin-ldo3-4",
223 .vsel_reg = AS3722_LDO3_VOLTAGE_REG, 223 .vsel_reg = AS3722_LDO3_VOLTAGE_REG,
224 .vsel_mask = AS3722_LDO3_VSEL_MASK, 224 .vsel_mask = AS3722_LDO3_VSEL_MASK,
225 .enable_reg = AS3722_LDOCONTROL0_REG, 225 .enable_reg = AS3722_LDOCONTROL0_REG,
@@ -231,7 +231,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = {
231 { 231 {
232 .regulator_id = AS3722_REGULATOR_ID_LDO4, 232 .regulator_id = AS3722_REGULATOR_ID_LDO4,
233 .name = "as3722-ldo4", 233 .name = "as3722-ldo4",
234 .name = "vin-ldo3-4", 234 .sname = "vin-ldo3-4",
235 .vsel_reg = AS3722_LDO4_VOLTAGE_REG, 235 .vsel_reg = AS3722_LDO4_VOLTAGE_REG,
236 .vsel_mask = AS3722_LDO_VSEL_MASK, 236 .vsel_mask = AS3722_LDO_VSEL_MASK,
237 .enable_reg = AS3722_LDOCONTROL0_REG, 237 .enable_reg = AS3722_LDOCONTROL0_REG,