]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit35bd3159195f86da302d327b0d99e2b48fa208c7
tree8c2e31143d7bbba658416dc4ba97e1ee322407a3
parent1568b2acd481a9b0ba15752013c4fd0799e7a45a
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