[PATCH v1 08/26] drm/panel: drop drm_device from drm_panel
Linus Walleij
linus.walleij at linaro.org
Tue Dec 3 13:27:34 UTC 2019
On Mon, Dec 2, 2019 at 8:33 PM Sam Ravnborg <sam at ravnborg.org> 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 <sam at ravnborg.org>
> Cc: Thierry Reding <thierry.reding at gmail.com>
> Cc: Laurent Pinchart <Laurent.pinchart at ideasonboard.com>
> Cc: Sam Ravnborg <sam at ravnborg.org>
> Cc: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
> Cc: Maxime Ripard <mripard at kernel.org>
> Cc: David Airlie <airlied at linux.ie>
> Cc: Daniel Vetter <daniel at ffwll.ch>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Jagan Teki <jagan at amarulasolutions.com>
> Cc: Stefan Mavrodiev <stefan at olimex.com>
> Cc: Robert Chiras <robert.chiras at nxp.com>
> Cc: "Guido Günther" <agx at sigxcpu.org>
> Cc: Purism Kernel Team <kernel at puri.sm>
Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
Yours,
Linus Walleij
More information about the dri-devel
mailing list