From: Axel Lin Date: Fri, 5 Sep 2014 01:17:41 +0000 (+0800) Subject: regulator: max77802: Remove duplicate rdev_get_id() call X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=da0bb557ba0b5985631a98b7450d256251e7fb5d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git regulator: max77802: Remove duplicate rdev_get_id() call Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c index 967e10934d3e..d89792b084e9 100644 --- a/drivers/regulator/max77802.c +++ b/drivers/regulator/max77802.c @@ -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); } @@ -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); }