From a5d8e2e73c7f1dcee485d55225628317d8d441c0 Mon Sep 17 00:00:00 2001 From: Andrzej Hajda Date: Fri, 30 May 2014 12:10:50 +0200 Subject: 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 Signed-off-by: Andrzej Hajda Signed-off-by: Lee Jones --- drivers/video/backlight/gpio_backlight.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/video/backlight/gpio_backlight.c') diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 1cea68848f1a..aaead04a2d54 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -44,11 +44,6 @@ static int gpio_backlight_update_status(struct backlight_device *bl) return 0; } -static int gpio_backlight_get_brightness(struct backlight_device *bl) -{ - return bl->props.brightness; -} - static int gpio_backlight_check_fb(struct backlight_device *bl, struct fb_info *info) { @@ -60,7 +55,6 @@ static int gpio_backlight_check_fb(struct backlight_device *bl, static const struct backlight_ops gpio_backlight_ops = { .options = BL_CORE_SUSPENDRESUME, .update_status = gpio_backlight_update_status, - .get_brightness = gpio_backlight_get_brightness, .check_fb = gpio_backlight_check_fb, }; -- cgit v1.2.3