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:
@@ -100,15 +100,9 @@ done:
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int pandora_backlight_get_brightness(struct backlight_device *bl)
|
||||
{
|
||||
return bl->props.brightness;
|
||||
}
|
||||
|
||||
static const struct backlight_ops pandora_backlight_ops = {
|
||||
.options = BL_CORE_SUSPENDRESUME,
|
||||
.update_status = pandora_backlight_update_status,
|
||||
.get_brightness = pandora_backlight_get_brightness,
|
||||
};
|
||||
|
||||
static int pandora_backlight_probe(struct platform_device *pdev)
|
||||
|
Reference in New Issue
Block a user