ACPI: thinkpad-acpi: add locking to brightness subdriver
commite43da42056ee2a9d14a6d3ffc3e8c270663b6041
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Mon, 16 Jul 2007 18:23:29 +0000 (16 15:23 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 9 Sep 2007 02:15:14 +0000 (8 23:15 -0300)
tree101e0238a6c80d22d6522fd9c7db43fc27ec060a
parent5cfc320857fb58c9f256dac02ba69af3c649ee45
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>
drivers/misc/thinkpad_acpi.c