platform/x86: fujitsu-laptop: merge set_lcd_level_alt() into set_lcd_level()
authorMichał Kępień <kernel@kempniu.pl>
Wed, 5 Apr 2017 06:49:02 +0000 (08:49 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:05 +0000 (10:16 -0700)
commite32c50ba5ae9f2b817e72aa8609ec25ab29b20dd
tree652fff270aa36489e4085e41007a6719fe746462
parenta1aabd5f3609dfa460050402c677620312bc2876
platform/x86: fujitsu-laptop: merge set_lcd_level_alt() into set_lcd_level()

Depending on the value of the use_alt_lcd_levels module parameter, one
of two functions is used for setting LCD brightness level.  These
functions are almost identical and only differ in the name of the ACPI
method they call.  Instead of checking the value of use_alt_lcd_levels
at each call site, move that check to set_lcd_level() and get rid of
set_lcd_level_alt().

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>
drivers/platform/x86/fujitsu-laptop.c