Skip to content

Commit da0bb55

Browse files
AxelLinbroonie
authored andcommitted
regulator: max77802: Remove duplicate rdev_get_id() call
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent aea8dfb commit da0bb55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/regulator/max77802.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int max77802_ldo_set_suspend_mode_logic1(struct regulator_dev *rdev,
134134
return -EINVAL;
135135
}
136136

137-
max77802->opmode[rdev_get_id(rdev)] = val;
137+
max77802->opmode[id] = val;
138138
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
139139
rdev->desc->enable_mask, val << shift);
140140
}
@@ -167,7 +167,7 @@ static int max77802_ldo_set_suspend_mode_logic2(struct regulator_dev *rdev,
167167
return -EINVAL;
168168
}
169169

170-
max77802->opmode[rdev_get_id(rdev)] = val;
170+
max77802->opmode[id] = val;
171171
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
172172
rdev->desc->enable_mask, val << shift);
173173
}

0 commit comments

Comments
 (0)