]> git.baikalelectronics.ru Git - kernel.git/commit
drm/panel-sony-acx424akp: Modernize backlight handling
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Jul 2021 09:28:08 +0000 (11:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 28 Jul 2021 21:46:18 +0000 (23:46 +0200)
commit7835ed6a9e868376c3d7758d017fcfb34e35b8bc
treec7002c39af56665404f6ea289d3e1697e68e5248
parent28be2405fb753927e18bc1a891617a430b2a0684
drm/panel-sony-acx424akp: Modernize backlight handling

This converts the internal backlight in the Sony ACX424AKP
driver to do it the canonical way:

- Assign the panel->backlight during probe.
- Let the panel framework handle the backlight.
- Make the backlight .set_brightness() turn the backlight
  off completely if blank.
- Fix some dev_err_probe() use cases along the way.

Tested on the U8500 HREF520 reference design.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210715092808.1100106-1-linus.walleij@linaro.org
drivers/gpu/drm/panel/panel-sony-acx424akp.c