platform/x86: fujitsu-laptop: simplify logolamp_get()
authorMichał Kępień <kernel@kempniu.pl>
Mon, 9 Jan 2017 13:14:17 +0000 (14:14 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:47:07 +0000 (02:47 +0100)
commit5c461e8e74a6a67cbd31ce0c9db5f8d0a41dccdd
tree930d581a3ad88abd4d3729330ea3f9bd57a069da
parentdcb50b351646c3549fc28b5857d1414ec6487615
platform/x86: fujitsu-laptop: simplify logolamp_get()

Now that call_fext_func() is invoked by logolamp_set() for both
LOGOLAMP_POWERON and LOGOLAMP_ALWAYS for every brightness value,
logolamp_get() can be simplified to decrease indentation and number of
local variables.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Acked-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/fujitsu-laptop.c