Skip to contentSkip to conversation

regulator: Use _cansleep() for WM8994 regulator GPIOs

PATCH Applied Mark Brown 2 participants 2 messages May 24, 2011 – May 25, 2011

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 regulator: Use _cansleep() for WM8994 regulator GPIOs

The WM8994 regulator driver is perfectly happy if the GPIO used to enable the regulator sleeps so call the appropriate GPIO API.

---
 drivers/regulator/wm8994-regulator.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/regulator/wm8994-regulator.c +2 -2
index 35b2958..1a6a690 100644
@@ -43,7 +43,7 @@ static int wm8994_ldo_enable(struct regulator_dev *rdev)
 	if (!ldo->enable)
 		return 0;
 
-	gpio_set_value(ldo->enable, 1);
+	gpio_set_value_cansleep(ldo->enable, 1);
 	ldo->is_enabled = true;
 
 	return 0;
@@ -57,7 +57,7 @@ static int wm8994_ldo_disable(struct regulator_dev *rdev)
 	if (!ldo->enable)
 		return -EINVAL;
 
-	gpio_set_value(ldo->enable, 0);
+	gpio_set_value_cansleep(ldo->enable, 0);
 	ldo->is_enabled = false;
 
 	return 0;
Signature · 1 line
1.7.5.1
#1 lore raw
Quoted 8 lines · Mark Brown

The WM8994 regulator driver is perfectly happy if the GPIO used to enable the regulator sleeps so call the appropriate GPIO API.

---
 drivers/regulator/wm8994-regulator.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Applied.

Thanks

Liam