asus-laptop: use attribute group to manage attributes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 26 Aug 2010 07:12:19 +0000 (00:12 -0700)
committerMatthew Garrett <mjg@redhat.com>
Thu, 21 Oct 2010 13:36:46 +0000 (09:36 -0400)
commitac9b1e5b63d5d9829ecf2294f0486ccd270c5db4
tree44038c936ea0ab24c4761cc9fd1aac1f1651dcc4
parent209009b2cb29124ad707fbb3ba4c95d3d100a1c4
asus-laptop: use attribute group to manage attributes

Instead of registering (and removing) every attribute individually
switch to using sysfs attribute group. This makes sure that we
properly unwind and do not try to remove non-existent attributes which
may not be safe to do in the future.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-laptop.c