diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2014-05-30 06:10:50 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-06-23 08:24:22 -0400 |
commit | a5d8e2e73c7f1dcee485d55225628317d8d441c0 (patch) | |
tree | 036a3b12a827fd6a5acac380e5e7d2d34d25b4cd /drivers/video/backlight/ld9040.c | |
parent | a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee (diff) |
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/ld9040.c')
-rw-r--r-- | drivers/video/backlight/ld9040.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/video/backlight/ld9040.c b/drivers/video/backlight/ld9040.c index 506a6c236039..ccb44e8e4927 100644 --- a/drivers/video/backlight/ld9040.c +++ b/drivers/video/backlight/ld9040.c | |||
@@ -642,11 +642,6 @@ static int ld9040_get_power(struct lcd_device *ld) | |||
642 | return lcd->power; | 642 | return lcd->power; |
643 | } | 643 | } |
644 | 644 | ||
645 | static int ld9040_get_brightness(struct backlight_device *bd) | ||
646 | { | ||
647 | return bd->props.brightness; | ||
648 | } | ||
649 | |||
650 | static int ld9040_set_brightness(struct backlight_device *bd) | 645 | static int ld9040_set_brightness(struct backlight_device *bd) |
651 | { | 646 | { |
652 | int ret = 0, brightness = bd->props.brightness; | 647 | int ret = 0, brightness = bd->props.brightness; |
@@ -674,7 +669,6 @@ static struct lcd_ops ld9040_lcd_ops = { | |||
674 | }; | 669 | }; |
675 | 670 | ||
676 | static const struct backlight_ops ld9040_backlight_ops = { | 671 | static const struct backlight_ops ld9040_backlight_ops = { |
677 | .get_brightness = ld9040_get_brightness, | ||
678 | .update_status = ld9040_set_brightness, | 672 | .update_status = ld9040_set_brightness, |
679 | }; | 673 | }; |
680 | 674 | ||