thinkpad-acpi: add new debug helpers and warn of deprecated atts
commit10065ddfe916d7c0fdfe2c250a4c5e9e978f478c
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 13:33:02 +0000 (18 10:33 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 18 Apr 2009 13:33:02 +0000 (18 10:33 -0300)
tree92bc938752e7e233754b4feb7ec12187924375fb
parent0cc196f0418517119ef12d3dfeb64320de6d061d
thinkpad-acpi: add new debug helpers and warn of deprecated atts

Add a debug helper that discloses the TGID of the userspace task
attempting to access the driver.  This is highly useful when dealing
with bug reports, since often the user has no idea that some userspace
application is accessing thinkpad-acpi...

Also add a helper to log warnings about sysfs attributes that are
deprecated.

Use the new helpers to issue deprecation warnings for bluetooth_enable
and wwan_enabled, that have been deprecated for a while, now.

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