diff options
author | Michał Kępień <kernel@kempniu.pl> | 2017-04-05 09:49:08 +0300 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-04-13 20:16:06 +0300 |
commit | d75a4a972ad1ed6d1326c63ae2fb0f9586161b4d (patch) | |
tree | 73a2705cb27b63fcb27b8673056a58f0013b23f1 /drivers/rtc/rtc-sunxi.c | |
parent | f7c4c3fad5937bef41696d39422fb7773accf912 (diff) | |
download | linux-d75a4a972ad1ed6d1326c63ae2fb0f9586161b4d.tar.xz |
platform/x86: fujitsu-laptop: do not log set_lcd_level() failures in bl_update_status()
Any set_lcd_level() call can fail for one of two reasons: either
requested brightness is outside the allowed range or the ACPI method
used for setting brightness level is not available. For
bl_update_status(), the first case is handled by backlight core, which
means bl_update_status() will not even be called if requested brightness
is outside the allowed range. The second case will be logged anyway by
set_lcd_level() itself, so there is no point in generating another
message in bl_update_status(). Remove the superfluous debug message
along with a local variable that is now redundant.
Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/rtc/rtc-sunxi.c')
0 files changed, 0 insertions, 0 deletions