On Mon, Dec 2, 2019 at 8:33 PM Sam Ravnborg <s...@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 <s...@ravnborg.org>
> Cc: Thierry Reding <thierry.red...@gmail.com>
> Cc: Laurent Pinchart <laurent.pinch...@ideasonboard.com>
> Cc: Sam Ravnborg <s...@ravnborg.org>
> Cc: Maarten Lankhorst <maarten.lankho...@linux.intel.com>
> Cc: Maxime Ripard <mrip...@kernel.org>
> Cc: David Airlie <airl...@linux.ie>
> Cc: Daniel Vetter <dan...@ffwll.ch>
> Cc: Linus Walleij <linus.wall...@linaro.org>
> Cc: Jagan Teki <ja...@amarulasolutions.com>
> Cc: Stefan Mavrodiev <ste...@olimex.com>
> Cc: Robert Chiras <robert.chi...@nxp.com>
> Cc: "Guido G√ľnther" <a...@sigxcpu.org>
> Cc: Purism Kernel Team <ker...@puri.sm>

Reviewed-by: Linus Walleij <linus.wall...@linaro.org>

Linus Walleij
dri-devel mailing list

Reply via email to