public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] VIDEO: OMAP: BACKLIGHT: Fix compiling issues due to API changes
@ 2007-10-03 20:28 Felipe Balbi
  2007-10-09 22:19 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe Balbi @ 2007-10-03 20:28 UTC (permalink / raw)
  To: linux-omap-open-source

From: Felipe Balbi <felipe.lima@indt.org.br>

This patch fixes compilation for omap_bl.c due to removal of
old class_dev

Signed-off-by: Felipe Balbi <felipe.lima@indt.org.br>
Acked-by: Luís Cargnini <lvcargnini@gmail.com>
---
 drivers/video/backlight/omap_bl.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/video/backlight/omap_bl.c b/drivers/video/backlight/omap_bl.c
index 3249bf8..2072f28 100644
--- a/drivers/video/backlight/omap_bl.c
+++ b/drivers/video/backlight/omap_bl.c
@@ -76,7 +76,7 @@ static void omapbl_blank(struct omap_backlight *bl, int mode)
 static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
 {
 	struct backlight_device *dev = platform_get_drvdata(pdev);
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 
 	omapbl_blank(bl, FB_BLANK_POWERDOWN);
 	return 0;
@@ -85,7 +85,7 @@ static int omapbl_suspend(struct platform_device *pdev, pm_message_t state)
 static int omapbl_resume(struct platform_device *pdev)
 {
 	struct backlight_device *dev = platform_get_drvdata(pdev);
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 
 	omapbl_blank(bl, bl->powermode);
 	return 0;
@@ -97,7 +97,7 @@ static int omapbl_resume(struct platform_device *pdev)
 
 static int omapbl_set_power(struct backlight_device *dev, int state)
 {
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 
 	omapbl_blank(bl, state);
 	bl->powermode = state;
@@ -107,7 +107,7 @@ static int omapbl_set_power(struct backlight_device *dev, int state)
 
 static int omapbl_update_status(struct backlight_device *dev)
 {
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 
 	if (bl->current_intensity != dev->props.brightness) {
 		if (dev->props.brightness < 0)
@@ -127,7 +127,7 @@ static int omapbl_update_status(struct backlight_device *dev)
 
 static int omapbl_get_intensity(struct backlight_device *dev)
 {
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 	return bl->current_intensity;
 }
 
@@ -182,7 +182,7 @@ static int omapbl_probe(struct platform_device *pdev)
 static int omapbl_remove(struct platform_device *pdev)
 {
 	struct backlight_device *dev = platform_get_drvdata(pdev);
-	struct omap_backlight *bl = class_get_devdata(&dev->class_dev);
+	struct omap_backlight *bl = dev_get_drvdata(&dev->dev);
 
 	backlight_device_unregister(dev);
 	kfree(bl);
-- 
1.5.3.3.131.g34c6d

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

* Re: [PATCH] VIDEO: OMAP: BACKLIGHT: Fix compiling issues due to API changes
  2007-10-03 20:28 [PATCH] VIDEO: OMAP: BACKLIGHT: Fix compiling issues due to API changes Felipe Balbi
@ 2007-10-09 22:19 ` Tony Lindgren
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2007-10-09 22:19 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: linux-omap-open-source

* Felipe Balbi <felipebalbi@users.sourceforge.net> [071003 13:29]:
> From: Felipe Balbi <felipe.lima@indt.org.br>
> 
> This patch fixes compilation for omap_bl.c due to removal of
> old class_dev

Pushing today.

Tony

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

end of thread, other threads:[~2007-10-09 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 20:28 [PATCH] VIDEO: OMAP: BACKLIGHT: Fix compiling issues due to API changes Felipe Balbi
2007-10-09 22:19 ` Tony Lindgren

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