summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/lv5207lp.c
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2014-05-30 12:10:50 +0200
committerLee Jones <lee.jones@linaro.org>2014-06-23 14:24:22 +0200
commita5d8e2e73c7f1dcee485d55225628317d8d441c0 (patch)
tree036a3b12a827fd6a5acac380e5e7d2d34d25b4cd /drivers/video/backlight/lv5207lp.c
parentLinux 3.16-rc2 (diff)
downloadlinux-a5d8e2e73c7f1dcee485d55225628317d8d441c0.tar.xz
linux-a5d8e2e73c7f1dcee485d55225628317d8d441c0.zip
backlight: Remove trivial get_brightness implementations
Since backlight core returns props.brightness in case get_brightness is not implemented trivial implementations are not needed anymore. Acked-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/video/backlight/lv5207lp.c')
-rw-r--r--drivers/video/backlight/lv5207lp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/video/backlight/lv5207lp.c b/drivers/video/backlight/lv5207lp.c
index 1802b2d1357d..8ab7297b118a 100644
--- a/drivers/video/backlight/lv5207lp.c
+++ b/drivers/video/backlight/lv5207lp.c
@@ -70,11 +70,6 @@ static int lv5207lp_backlight_update_status(struct backlight_device *backlight)
return 0;
}
-static int lv5207lp_backlight_get_brightness(struct backlight_device *backlight)
-{
- return backlight->props.brightness;
-}
-
static int lv5207lp_backlight_check_fb(struct backlight_device *backlight,
struct fb_info *info)
{
@@ -86,7 +81,6 @@ static int lv5207lp_backlight_check_fb(struct backlight_device *backlight,
static const struct backlight_ops lv5207lp_backlight_ops = {
.options = BL_CORE_SUSPENDRESUME,
.update_status = lv5207lp_backlight_update_status,
- .get_brightness = lv5207lp_backlight_get_brightness,
.check_fb = lv5207lp_backlight_check_fb,
};