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>
Esse commit está contido em:
@@ -46,13 +46,7 @@ static int samsungq10_bl_set_intensity(struct backlight_device *bd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int samsungq10_bl_get_intensity(struct backlight_device *bd)
|
||||
{
|
||||
return bd->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops samsungq10_bl_ops = {
|
||||
.get_brightness = samsungq10_bl_get_intensity,
|
||||
.update_status = samsungq10_bl_set_intensity,
|
||||
};
|
||||
|
||||
|
Referência em uma nova issue
Block a user