commit | ed52ccbce7ffdde51f116e2cc9de00251f1ff7c5 | [log] [tgz] |
---|---|---|
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | Fri Jan 23 09:01:10 2015 -0500 |
committer | Darren Hart <dvhart@linux.intel.com> | Wed Jan 28 21:21:11 2015 -0800 |
tree | 66acb1e2965a04d96f341ec84309e3e5669d63c5 | |
parent | 32d0e4a33773ad68c582999a5b945cc47bb02809 [diff] |
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>