OMAPDSS: acx565akm: remove platform backlight calls
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 14 Sep 2012 10:20:22 +0000 (13:20 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 3 Apr 2013 12:19:45 +0000 (15:19 +0300)
acx565akm has support to call set_backlight/get_backlight in platform
code. They are not used by any board, and thus can be removed from the
driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/displays/panel-acx565akm.c

index 72699f88c00215bc41f5f775f17caf8399dc1e23..a980a11f584f1dfbb3f9fc75f1d8426f360c642f 100644 (file)
@@ -336,8 +336,6 @@ static int acx565akm_bl_update_status(struct backlight_device *dev)
        r = 0;
        if (md->has_bc)
                acx565akm_set_brightness(md, level);
-       else if (md->dssdev->set_backlight)
-               r = md->dssdev->set_backlight(md->dssdev, level);
        else
                r = -ENODEV;
 
@@ -352,7 +350,7 @@ static int acx565akm_bl_get_intensity(struct backlight_device *dev)
 
        dev_dbg(&dev->dev, "%s\n", __func__);
 
-       if (!md->has_bc && md->dssdev->set_backlight == NULL)
+       if (!md->has_bc)
                return -ENODEV;
 
        if (dev->props.fb_blank == FB_BLANK_UNBLANK &&
@@ -564,8 +562,6 @@ static int acx_panel_probe(struct omap_dss_device *dssdev)
 
        if (md->has_bc)
                brightness = acx565akm_get_actual_brightness(md);
-       else if (dssdev->get_backlight)
-               brightness = dssdev->get_backlight(dssdev);
        else
                brightness = 0;