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>
This commit is contained in:
@@ -82,13 +82,7 @@ static int nvidia_bl_update_status(struct backlight_device *bd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int nvidia_bl_get_brightness(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops nvidia_bl_ops = {
|
||||
.get_brightness = nvidia_bl_get_brightness,
|
||||
.update_status = nvidia_bl_update_status,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user