Zhang Rui d32f69470c ACPI video: support _BCL packages that don't export brightness levels when machine is on AC/Battery
Many buggy BIOSes don't export the brightness levels when machine
is on AC/Battery in the _BCL method.

Reformat the _BCL package for these laptops:
now the elements in device->brightness->levels[] are like:
levels[0]: brightness level when on AC power.
levels[1]: brightness level when on Battery power.
levels[2]: supported brightness level 1.
levels[3]: supported brightness level 2.
...
levels[n]: supported brightness level n-1.
levels[n + 1]: supported brightness level n.
So if there are n supported brightness levels on this laptop,
we will have n+2 entries in device->brightnes->levels[].

level[0] and level[1] are invalid on the laptops that don't
export the brightness levels on AC/Battery.
Fortunately, we never use these two values at all, even for the
valid ones.

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

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Acked-by: Matthew Garrett <mjg59@srcf.ucam.org>
Acked-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
2009-03-27 21:55:58 -04:00
..
2008-11-11 21:14:49 -05:00
2009-03-16 00:35:30 -04:00
2008-11-11 21:17:26 -05:00
2009-02-21 21:59:56 -05:00
2009-02-21 21:59:56 -05:00
2008-12-30 21:50:01 -05:00
2009-01-09 03:36:32 -05:00
2009-02-06 12:34:39 -05:00
2008-10-23 00:11:07 -04:00
2009-01-09 03:30:47 -05:00
2009-01-09 03:30:47 -05:00