ACPI / video: Fix applying indexed initial brightness value.
authorDanny Baumann <dannybaumann@web.de>
Tue, 19 Mar 2013 16:22:52 +0000 (16:22 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 23:26:55 +0000 (00:26 +0100)
commit994fa63c5b126df6e9f31ef4e09000e2e243234b
treeb6214bc68418cae8935248c4d997318702c98daf
parent2d4128a25206685aaccaf14220c8436b11c6dc01
ACPI / video: Fix applying indexed initial brightness value.

The value initially read via _BQC also needs to be offset by 2 to
compensate for the first 2 special items in _BCL. Introduce a helper
function that does the BQC-value-to-level conversion in order to not
needlessly duplicate code.

Signed-off-by: Danny Baumann <dannybaumann@web.de>
Reviewed-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video.c