Commit a181c1c7 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown

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: default avatarSachin Kamat <sachin.kamat@samsung.com>
Reviewed-by: default avatarLaxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7171511e
...@@ -219,7 +219,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = { ...@@ -219,7 +219,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = {
{ {
.regulator_id = AS3722_REGULATOR_ID_LDO3, .regulator_id = AS3722_REGULATOR_ID_LDO3,
.name = "as3722-ldo3", .name = "as3722-ldo3",
.name = "vin-ldo3-4", .sname = "vin-ldo3-4",
.vsel_reg = AS3722_LDO3_VOLTAGE_REG, .vsel_reg = AS3722_LDO3_VOLTAGE_REG,
.vsel_mask = AS3722_LDO3_VSEL_MASK, .vsel_mask = AS3722_LDO3_VSEL_MASK,
.enable_reg = AS3722_LDOCONTROL0_REG, .enable_reg = AS3722_LDOCONTROL0_REG,
...@@ -231,7 +231,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = { ...@@ -231,7 +231,7 @@ static const struct as3722_register_mapping as3722_reg_lookup[] = {
{ {
.regulator_id = AS3722_REGULATOR_ID_LDO4, .regulator_id = AS3722_REGULATOR_ID_LDO4,
.name = "as3722-ldo4", .name = "as3722-ldo4",
.name = "vin-ldo3-4", .sname = "vin-ldo3-4",
.vsel_reg = AS3722_LDO4_VOLTAGE_REG, .vsel_reg = AS3722_LDO4_VOLTAGE_REG,
.vsel_mask = AS3722_LDO_VSEL_MASK, .vsel_mask = AS3722_LDO_VSEL_MASK,
.enable_reg = AS3722_LDOCONTROL0_REG, .enable_reg = AS3722_LDOCONTROL0_REG,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment