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>
This commit is contained in:
Axel Lin 2014-09-05 09:17:41 +08:00 committed by Mark Brown
parent aea8dfb9f3
commit da0bb557ba
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}