platform/x86: fujitsu-laptop: rework logolamp_set() to properly handle errors
authorMichał Kępień <kernel@kempniu.pl>
Mon, 9 Jan 2017 13:14:16 +0000 (14:14 +0100)
committerDarren Hart <dvhart@linux.intel.com>
Sat, 4 Feb 2017 01:46:38 +0000 (02:46 +0100)
commitdcb50b351646c3549fc28b5857d1414ec6487615
tree8c2e31143d7bbba658416dc4ba97e1ee322407a3
parent9893ae86066cf0a59a6beb3908b9cdac4c1347f3
platform/x86: fujitsu-laptop: rework logolamp_set() to properly handle errors

Potential errors returned by some call_fext_func() calls inside
logolamp_set() are currently ignored.  Rework logolamp_set() to properly
handle them.  This causes one more call_fext_func() call to be made in
the LED_OFF case, though one could argue that this is logically the
right thing to do (even though the extra call is not needed to shut the
LED off).

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