mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
ACPI / Thermal / video: fix max_level incorrect value
commit059500940d(ACPI/video: export acpi_video_get_levels) mistakenly dropped the correct value of max_level and that caused the set_level function following failed and the acpi_video backlight interface didn't get created. Fix this by passing back the correct max_level value. While at it, also fix the param used in acpi_video_device_lcd_query_levels where acpi_handle is expected but acpi_video_device is passed. Fixes:059500940d(ACPI/video: export acpi_video_get_levels) Reported-and-tested-by: Valdis Kletnieks <[email protected]> Signed-off-by: Aaron Lu <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
e4f35c1339
commit
9f9cd7ee2c
3 changed files with 11 additions and 6 deletions
|
|
@ -177,7 +177,7 @@ static int int3406_thermal_probe(struct platform_device *pdev)
|
|||
return -ENODEV;
|
||||
d->raw_bd = bd;
|
||||
|
||||
ret = acpi_video_get_levels(ACPI_COMPANION(&pdev->dev), &d->br);
|
||||
ret = acpi_video_get_levels(ACPI_COMPANION(&pdev->dev), &d->br, NULL);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue