OSDN Git Service

platform/x86: fujitsu-laptop: simplify platform device attribute definitions
authorMichał Kępień <kernel@kempniu.pl>
Tue, 14 Mar 2017 10:26:28 +0000 (11:26 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 23 Mar 2017 16:03:23 +0000 (09:03 -0700)
commitb0c4b9c64e7ca4eaf39996429e98d97725d7098e
tree4aa9ecb79511fde4e8914003a4b9e89e675f7f72
parent78b2602fbb0e3fe33599ced64b74b73a681b1e56
platform/x86: fujitsu-laptop: simplify platform device attribute definitions

Use the DEVICE_ATTR_RO() macro to get rid of ignore_store() and shorten
attribute definitions.  Adjust whitespace to make checkpatch happy.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Tested-by: Jonathan Woithe <jwoithe@just42.net>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c