Commit 058cc3bf authored by Tomi Valkeinen's avatar Tomi Valkeinen

OMAPDSS: acx565akm: remove platform backlight calls

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
parent c3f80cbc
...@@ -336,8 +336,6 @@ static int acx565akm_bl_update_status(struct backlight_device *dev) ...@@ -336,8 +336,6 @@ static int acx565akm_bl_update_status(struct backlight_device *dev)
r = 0; r = 0;
if (md->has_bc) if (md->has_bc)
acx565akm_set_brightness(md, level); acx565akm_set_brightness(md, level);
else if (md->dssdev->set_backlight)
r = md->dssdev->set_backlight(md->dssdev, level);
else else
r = -ENODEV; r = -ENODEV;
...@@ -352,7 +350,7 @@ static int acx565akm_bl_get_intensity(struct backlight_device *dev) ...@@ -352,7 +350,7 @@ static int acx565akm_bl_get_intensity(struct backlight_device *dev)
dev_dbg(&dev->dev, "%s\n", __func__); dev_dbg(&dev->dev, "%s\n", __func__);
if (!md->has_bc && md->dssdev->set_backlight == NULL) if (!md->has_bc)
return -ENODEV; return -ENODEV;
if (dev->props.fb_blank == FB_BLANK_UNBLANK && if (dev->props.fb_blank == FB_BLANK_UNBLANK &&
...@@ -564,8 +562,6 @@ static int acx_panel_probe(struct omap_dss_device *dssdev) ...@@ -564,8 +562,6 @@ static int acx_panel_probe(struct omap_dss_device *dssdev)
if (md->has_bc) if (md->has_bc)
brightness = acx565akm_get_actual_brightness(md); brightness = acx565akm_get_actual_brightness(md);
else if (dssdev->get_backlight)
brightness = dssdev->get_backlight(dssdev);
else else
brightness = 0; brightness = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment