On Mon, Dec 2, 2019 at 8:33 PM Sam Ravnborg <[email protected]> wrote:

> The panel drivers used drm_panel.drm for two purposes:
> 1) Argument to drm_mode_duplicate()
> 2) drm->dev was used in error messages
>
> The first usage is replaced with drm_connector.dev
> - drm_connector is already connected to a drm_device
>   and we have a valid connector
>
> The second usage is replaced with drm_panel.dev
> - this makes drivers more consistent in their dev argument
>   used for dev_err() and friends
>
> With these replacements there are no more uses of drm_panel.drm,
> so it is removed from struct drm_panel.
> With this change drm_panel_attach() and drm_panel_detach()
> no logner has any use as they are empty functions.
>
> Signed-off-by: Sam Ravnborg <[email protected]>
> Cc: Thierry Reding <[email protected]>
> Cc: Laurent Pinchart <[email protected]>
> Cc: Sam Ravnborg <[email protected]>
> Cc: Maarten Lankhorst <[email protected]>
> Cc: Maxime Ripard <[email protected]>
> Cc: David Airlie <[email protected]>
> Cc: Daniel Vetter <[email protected]>
> Cc: Linus Walleij <[email protected]>
> Cc: Jagan Teki <[email protected]>
> Cc: Stefan Mavrodiev <[email protected]>
> Cc: Robert Chiras <[email protected]>
> Cc: "Guido Günther" <[email protected]>
> Cc: Purism Kernel Team <[email protected]>

Reviewed-by: Linus Walleij <[email protected]>

Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to