asus-laptop: use DEVICE_ATTR_xx macros
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Fri, 23 Jan 2015 14:01:10 +0000 (09:01 -0500)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 29 Jan 2015 05:21:11 +0000 (21:21 -0800)
commited52ccbce7ffdde51f116e2cc9de00251f1ff7c5
tree66acb1e2965a04d96f341ec84309e3e5669d63c5
parent32d0e4a33773ad68c582999a5b945cc47bb02809
asus-laptop: use DEVICE_ATTR_xx macros

Use DEVICE_ATTR_{RO,WO,RW} macros to simplify sysfs attributes
declaration.

To declare a "foo" attribute, DEVICE_ATTR_RW() requires foo_show() and
foo_store(), so rename a few functions to satisfy this requirement.

Also put the macro below each related show/store functions for clarity.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/asus-laptop.c