]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: thinkpad-acpi: add locking to brightness subdriver
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Thu, 19 Jul 2007 02:45:48 +0000 (23:45 -0300)
committerLen Brown <len.brown@intel.com>
Sun, 22 Jul 2007 03:50:51 +0000 (23:50 -0400)
commit6b30c837bcaeb65d5b820b4c8623cf81a30eda33
treece32df538477acab984d079d6963e0261c0d7325
parent052975378f28db56126c40fe7782ffb31a4c5704
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