]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8dad28e2b2da872d43b3c6eca2ab9b275b737c8a
tree44038c936ea0ab24c4761cc9fd1aac1f1651dcc4
parent92c466ed086fb6c587c02afeb5e57ee89d0fdcd6
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