drm: bridge: dw-mipi-dsi: Switch to devm_drm_of_get_bridge
authorJagan Teki <jagan@amarulasolutions.com>
Thu, 31 Mar 2022 15:45:02 +0000 (21:15 +0530)
committerRobert Foss <robert.foss@linaro.org>
Thu, 31 Mar 2022 15:52:48 +0000 (17:52 +0200)
commit1c74c1fb83ebb414c017d459e7875abe777654d7
tree2f7220782590d418d4f674db3aff97879b2dd72c
parent1d0b536304455cab5ef71329d704bf310d74f34b
drm: bridge: dw-mipi-dsi: Switch to devm_drm_of_get_bridge

devm_drm_of_get_bridge is capable of looking up the downstream
bridge and panel and trying to add a panel bridge if the panel
is found.

Replace explicit finding calls with devm_drm_of_get_bridge.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220331154503.66054-4-jagan@amarulasolutions.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c