drm/panel: drop drm_device from drm_panel
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 longer have any use as they are empty functions. v2: - editorial correction in changelog (Laurent) Signed-off-by:Sam Ravnborg <sam@ravnborg.org> Reviewed-by:
Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by:
Linus Walleij <linus.walleij@linaro.org> Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Maxime Ripard <mripard@kernel.org> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Jagan Teki <jagan@amarulasolutions.com> Cc: Stefan Mavrodiev <stefan@olimex.com> Cc: Robert Chiras <robert.chiras@nxp.com> Cc: "Guido Günther" <agx@sigxcpu.org> Cc: Purism Kernel Team <kernel@puri.sm> Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-8-sam@ravnborg.org
Showing
- drivers/gpu/drm/drm_panel.c 0 additions, 6 deletionsdrivers/gpu/drm/drm_panel.c
- drivers/gpu/drm/panel/panel-arm-versatile.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-arm-versatile.c
- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c
- drivers/gpu/drm/panel/panel-ilitek-ili9322.c 8 additions, 7 deletionsdrivers/gpu/drm/panel/panel-ilitek-ili9322.c
- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-ilitek-ili9881c.c
- drivers/gpu/drm/panel/panel-innolux-p079zca.c 3 additions, 3 deletionsdrivers/gpu/drm/panel/panel-innolux-p079zca.c
- drivers/gpu/drm/panel/panel-jdi-lt070me05000.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-jdi-lt070me05000.c
- drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c 3 additions, 3 deletionsdrivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c
- drivers/gpu/drm/panel/panel-lg-lb035q02.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-lg-lb035q02.c
- drivers/gpu/drm/panel/panel-lg-lg4573.c 2 additions, 2 deletionsdrivers/gpu/drm/panel/panel-lg-lg4573.c
- drivers/gpu/drm/panel/panel-lvds.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-lvds.c
- drivers/gpu/drm/panel/panel-nec-nl8048hl11.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-nec-nl8048hl11.c
- drivers/gpu/drm/panel/panel-novatek-nt39016.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-novatek-nt39016.c
- drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c 2 additions, 3 deletionsdrivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c
- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-orisetech-otm8009a.c
- drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c 2 additions, 2 deletionsdrivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c
- drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c 4 additions, 4 deletionsdrivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c 2 additions, 3 deletionsdrivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
- drivers/gpu/drm/panel/panel-raydium-rm67191.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-raydium-rm67191.c
- drivers/gpu/drm/panel/panel-raydium-rm68200.c 1 addition, 1 deletiondrivers/gpu/drm/panel/panel-raydium-rm68200.c
Loading
Please register or sign in to comment