platform/x86: fujitsu-laptop: refactor backlight input device setup
authorMichał Kępień <kernel@kempniu.pl>
Mon, 20 Mar 2017 09:32:17 +0000 (10:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:23 +0000 (10:14 -0700)
commit7d134e43a2ac729888bb752f8dba5f8bbb5c938a
treed8136b21780ff383a3bfa448a06d16c270a7ec57
parent674b5d58366e3f319520a89785c292a60aacb702
platform/x86: fujitsu-laptop: refactor backlight input device setup

Simplify error handling in acpi_fujitsu_bl_add() by moving code
responsible for setting up the input device to a separate function.

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