ACPI: video: Rationalise ACPI backlight implementation
authorMatthew Garrett <mjg59@srcf.ucam.org>
Wed, 26 Dec 2007 02:03:26 +0000 (02:03 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 2 Feb 2008 03:43:31 +0000 (22:43 -0500)
commit38531e6fe51ad5c7dfe72e0e066b5f54bc1921cd
tree84d20e98033a647569b751aa43419d166f587c6d
parentaa6299926950c8dfe2fea638276cad6def092bc9
ACPI: video: Rationalise ACPI backlight implementation

The sysfs backlight class provides no mechanism for querying the
acceptable brightness for a backlight. The ACPI spec states that values
are only valid if they are reported as available by the firmware. Since
we can't provide that information to userspace, instead collapse the
range to the number of actual values that can be set.

http://bugzilla.kernel.org/show_bug.cgi?id=9277

Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c