public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: max77802: Remove duplicate rdev_get_id() call
@ 2014-09-05  1:17 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2014-09-05  1:17 UTC (permalink / raw)
  To: Mark Brown
  Cc: Javier Martinez Canillas, Liam Girdwood,
	linux-kernel@vger.kernel.org

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/regulator/max77802.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/max77802.c b/drivers/regulator/max77802.c
index 967e109..d89792b 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);
 }
-- 
1.9.1




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-09-05  1:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05  1:17 [PATCH] regulator: max77802: Remove duplicate rdev_get_id() call Axel Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox