]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/tilcdc: use devm_of_find_backlight
authorSam Ravnborg <sam@ravnborg.org>
Thu, 14 May 2020 19:09:45 +0000 (21:09 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 17 May 2020 12:55:29 +0000 (14:55 +0200)
commita18dc7401ab5c86de38f64ee6301a6bd3757f017
treece9ac1703c7da56a6cf49728bb4d1122888719eb
parent1efa9eff7b94ed834162a17091db2fedc656763b
drm/tilcdc: use devm_of_find_backlight

Look up backlight device using devm_of_find_backlight().
This simplifies the code and prevents us from hardcoding
the node name in the driver.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200514191001.457441-3-sam@ravnborg.org
drivers/gpu/drm/tilcdc/tilcdc_panel.c