ACPI: thinkpad-acpi: add locking to brightness subdriver
commitf432255e936a892a6896e5032e2b4897423076f2
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 19 Jul 2007 02:45:48 +0000 (18 23:45 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 22 Jul 2007 03:50:51 +0000 (21 23:50 -0400)
treece32df538477acab984d079d6963e0261c0d7325
parentc78d5c96bb65b71a54b7551b404fbaf4763ed6e4
ACPI: thinkpad-acpi: add locking to brightness subdriver

The backlight class does all the locking needed for sysfs access, but
offers no API to interface to that locking without an layer violation.

Since we need to mutex-lock procfs access, implement in-driver locking for
brightness.  It will go away the day thinkpad-acpi procfs goes away, or the
backlight class gives us a way to use its locks without a layer violation.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/thinkpad_acpi.c