All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAPDSS: TFP410: use gpio_set_value_cansleep
@ 2012-05-09 22:08 ` Russ Dill
  0 siblings, 0 replies; 14+ messages in thread
From: Russ Dill @ 2012-05-09 22:08 UTC (permalink / raw)
  To: linux-omap; +Cc: linux-fbdev, Russ Dill

The Beagleboard xM gpio used for TFP410 powerdown is connected through
an I2C attached chip which means setting the GPIO can sleep. Code that
calls tfp410_power_on/off holds a mutex, so sleeping should be fine.

Signed-off-by: Russ Dill <Russ.Dill@ti.com>
---
 drivers/video/omap2/displays/panel-tfp410.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/omap2/displays/panel-tfp410.c b/drivers/video/omap2/displays/panel-tfp410.c
index 52637fa..1266520 100644
--- a/drivers/video/omap2/displays/panel-tfp410.c
+++ b/drivers/video/omap2/displays/panel-tfp410.c
@@ -68,7 +68,7 @@ static int tfp410_power_on(struct omap_dss_device *dssdev)
 		goto err0;
 
 	if (gpio_is_valid(ddata->pd_gpio))
-		gpio_set_value(ddata->pd_gpio, 1);
+		gpio_set_value_cansleep(ddata->pd_gpio, 1);
 
 	return 0;
 err0:
@@ -83,7 +83,7 @@ static void tfp410_power_off(struct omap_dss_device *dssdev)
 		return;
 
 	if (gpio_is_valid(ddata->pd_gpio))
-		gpio_set_value(ddata->pd_gpio, 0);
+		gpio_set_value_cansleep(ddata->pd_gpio, 0);
 
 	omapdss_dpi_display_disable(dssdev);
 }
-- 
1.7.10


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-05-10 16:16 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 22:08 [PATCH] OMAPDSS: TFP410: use gpio_set_value_cansleep Russ Dill
2012-05-09 22:08 ` Russ Dill
2012-05-09 22:14 ` Tony Lindgren
2012-05-09 22:14   ` Tony Lindgren
2012-05-09 22:50   ` Russ Dill
2012-05-09 22:50     ` Russ Dill
2012-05-09 23:37     ` Tony Lindgren
2012-05-09 23:37       ` Tony Lindgren
2012-05-10  6:53       ` Tomi Valkeinen
2012-05-10  6:53         ` Tomi Valkeinen
2012-05-10 16:16         ` Tony Lindgren
2012-05-10 16:16           ` Tony Lindgren
2012-05-10  6:54 ` Tomi Valkeinen
2012-05-10  6:54   ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.