ACPI: thinkpad-acpi: do not use named sysfs groups
commit9c77ac988150c80593147ff357780c652c8e2cdc
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 24 May 2007 02:09:49 +0000 (23 23:09 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 7 Jul 2007 12:42:48 +0000 (7 09:42 -0300)
tree4b1a661c678dbd2c6bbbcaeade4175cbcb8e56f2
parentde4a88214c6f66479425e246294b68657b5247c1
ACPI: thinkpad-acpi: do not use named sysfs groups

The initial version of the thinkpad-acpi sysfs interface (not yet released
in any stable mainline kernel) made liberal use of named sysfs groups, in
order to get the attributes more organized.

This proved to be a really bad design decision.  Maybe if attribute groups
were as flexible as a real directory, and if binary attributes were not
second-class citizens, the idea of subdirs and named groups would not have
been so bad.

This patch makes all the thinkpad-acpi sysfs groups anonymous (thus
removing the subdirs), adds the former group names as a prefix (so that
hotkey/enable becomes hotkey_enable for example), and updates the
documentation.

These changes will make the thinkpad-acpi sysfs ABI a lot easier to
maintain.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h