Skip to content

Commit

Permalink
regulator: max77802: Remove duplicate rdev_get_id() call
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 5, 2014
1 parent aea8dfb commit da0bb55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/max77802.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static int max77802_ldo_set_suspend_mode_logic1(struct regulator_dev *rdev,
return -EINVAL;
}

max77802->opmode[rdev_get_id(rdev)] = val;
max77802->opmode[id] = val;
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
rdev->desc->enable_mask, val << shift);
}
Expand Down Expand Up @@ -167,7 +167,7 @@ static int max77802_ldo_set_suspend_mode_logic2(struct regulator_dev *rdev,
return -EINVAL;
}

max77802->opmode[rdev_get_id(rdev)] = val;
max77802->opmode[id] = val;
return regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
rdev->desc->enable_mask, val << shift);
}
Expand Down

0 comments on commit da0bb55

Please sign in to comment.