drm/omap: display: use devm_of_find_backlight
authorSam Ravnborg <sam@ravnborg.org>
Thu, 14 May 2020 19:09:44 +0000 (21:09 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 17 May 2020 12:54:39 +0000 (14:54 +0200)
commit1efa9eff7b94ed834162a17091db2fedc656763b
tree13508e7b6d1b29a4dffeaad782ddf78d91d5ea3a
parentb718102dbdfd0285ad559687a30e27cc9124e592
drm/omap: display: 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: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Zheng Bin <zhengbin13@huawei.com>
Cc: Kate Stewart <kstewart@linuxfoundation.org>
Cc: Enrico Weigelt <info@metux.net>
Cc: Allison Randal <allison@lohutok.net>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200514191001.457441-2-sam@ravnborg.org
drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c