]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: fujitsu-laptop: remove redundant fields from struct fujitsu_bl
authorMichał Kępień <kernel@kempniu.pl>
Wed, 5 Apr 2017 06:49:10 +0000 (08:49 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:16:07 +0000 (10:16 -0700)
commit3d7be21960a65db558163bf1123fd6643730116f
tree3bb70bfcaf533ceeb8fe43b375d19a5606527934
parentc92010abe18900437cd6ce26f960ef2c829928a8
platform/x86: fujitsu-laptop: remove redundant fields from struct fujitsu_bl

The dev field of struct fujitsu_bl is assigned in acpi_fujitsu_bl_add(),
but never used afterwards.  brightness_changed is set in get_lcd_level()
and then its value is only printed in a debug message, so it does not
influence execution flow.  Remove both fields as they are redundant.
Update the aforementioned debug message.  Adjust whitespace to make
checkpatch happy.

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