ACPI: thinkpad-acpi: do not use named sysfs groupsv2.6.21.3+thinkpad-acpi-20070524
commit9b07ac218e4606be6726c8894ab54e331849c933
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>
Thu, 24 May 2007 23:57:56 +0000 (24 20:57 -0300)
tree0ccb3e1fc7082b4b393d54dcabbf801eeeca03e4
parent2d6b4247d8cc468b1882d36eb8b8c29564738edb
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