thinkpad-acpi: let other subdrivers know backlight level range
commitaef2426a301c432a220573566e02ec8b21e0ba1f
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Apr 2010 21:44:47 +0000 (3 18:44 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 27 Apr 2010 04:03:07 +0000 (27 01:03 -0300)
tree4846a94e80916b5bbc5545f16850aa8ac602dacb
parent17782a9fe8ff42225f201ee887abc41ac706d80e
thinkpad-acpi: let other subdrivers know backlight level range

Extract the backlight level range size detection from the brightness
subdriver, and allow the other subdrivers access to that information.

This also allows us to relocate some code to a more convenient place.
The moved code was largerly unmodified, except for the return type of
tpacpi_check_std_acpi_brightness_support(), which now is correctly
marked as returning "unsigned int", and and two cosmetic fixes to make
checkpatch.pl happy.

Fixes for the NVRAM polling mode for the brightness hotkeys will need
this.

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