[PATCH] drm: rcar-du: switch to devm_drm_of_get_bridge
Maxime Ripard
maxime at cerno.tech
Mon Feb 21 08:56:19 UTC 2022
On Mon, Feb 21, 2022 at 08:37:57AM +0100, José Expósito wrote:
> The function "drm_of_find_panel_or_bridge" has been deprecated in
> favor of "devm_drm_of_get_bridge".
>
> Switch to the new function and reduce boilerplate.
>
> Signed-off-by: José Expósito <jose.exposito89 at gmail.com>
> ---
> drivers/gpu/drm/rcar-du/rcar_lvds.c | 16 +++++-----------
> 1 file changed, 5 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c
> index 72a272cfc11e..99b0febc56d1 100644
> --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c
> +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c
> @@ -712,18 +712,12 @@ static int rcar_lvds_parse_dt(struct rcar_lvds *lvds)
> {
> int ret;
>
> - ret = drm_of_find_panel_or_bridge(lvds->dev->of_node, 1, 0,
> - &lvds->panel, &lvds->next_bridge);
I guess lvds->panel can be removed from the rcar_lvds struct as well?
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220221/732cd6a1/attachment-0001.sig>
More information about the dri-devel
mailing list