ACPI: thinkpad-acpi: add locking to brightness subdriver
commitbd8bd886fac9100eb6bf6ae985b213a9f0e193f3
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>
Mon, 23 Jul 2007 07:43:42 +0000 (23 04:43 -0300)
treef70fc167a8ff5495e193760e7aa7d9ec79e7324d
parent21613f17197fdb1f118f44fd1fdaaf4a59cbf8c1
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