drm/bridge: minor cleanups
Subsystems (6)
Luca Ceresoli
reviewercover drm/bridge: minor cleanups
This series removes some unnecessary #includes and and unused forward declarations, which I noticed while preparing a way more complex series (bridge hotplug). I decided to split these trivial patches to a separate series to limit the noise on the larger series.
---
Luca Ceresoli (8):
drm/panel: remove unnecessary forward declaration drm/bridge: nxp-ptn3460: remove unused drm_panel.h include drm/bridge: parade-ps8622: remove unused drm_panel.h include drm/bridge: parade-ps8640: remove unused drm_panel.h include drm/bridge: tc358762: remove unused drm_panel.h include, add drm_bridge.h drm/bridge: tc358775: remove unused drm_panel.h include drm/bridge: ti-sn65dsi83: remove unused drm_panel.h include drm/bridge: ti-sn65dsi86: remove unused drm_panel.h include
drivers/gpu/drm/bridge/nxp-ptn3460.c | 1 - drivers/gpu/drm/bridge/parade-ps8622.c | 1 - drivers/gpu/drm/bridge/parade-ps8640.c | 1 - drivers/gpu/drm/bridge/tc358762.c | 2 +- drivers/gpu/drm/bridge/tc358775.c | 1 - drivers/gpu/drm/bridge/ti-sn65dsi83.c | 1 - drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 - include/drm/drm_panel.h | 1 - 8 files changed, 1 insertion(+), 8 deletions(-)
---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250206-drm-cleanups-b78703e04e9f
Best regards,
Signature · 1 line
Luca Ceresoli <[email protected]>
Luca Ceresoli
reviewerPATCH 1/8 drm/panel: remove unnecessary forward declaration
'struct drm_device' is not used at all in this file since commit aa6c43644bc5 ("drm/panel: drop drm_device from drm_panel").
--- include/drm/drm_panel.h | 1 - 1 file changed, 1 deletion(-)
include/drm/drm_panel.h +0 -1
@@ -33,7 +33,6 @@ struct backlight_device;struct dentry ;struct device_node ;struct drm_connector ; -struct drm_device ;struct drm_panel_follower ;struct drm_panel ;struct display_timing ;
Signature · 1 line
2.34.1
Re: [PATCH 1/8] drm/panel: remove unnecessary forward declaration
Hi,
Quoted 8 lines · Luca Ceresoli
'struct
drm_device' is not used at all in this file since commitaa6c43644bc5("drm/panel: dropdrm_devicefromdrm_panel").Signed-off-by Luca Ceresoli <[email protected]>--- include/drm/drm_panel.h | 1 - 1 file changed, 1 deletion(-)
Luca Ceresoli
reviewerPATCH 2/8 drm/bridge: nxp-ptn3460: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/nxp-ptn3460.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/nxp-ptn3460.c +0 -1
@@ -15,7 +15,6 @@#include <drm/drm_crtc.h> #include <drm/drm_edid.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.34.1
Luca Ceresoli
reviewerPATCH 3/8 drm/bridge: parade-ps8622: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/parade-ps8622.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/parade-ps8622.c +0 -1
@@ -19,7 +19,6 @@#include <drm/drm_bridge.h> #include <drm/drm_crtc.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.34.1
Luca Ceresoli
reviewerPATCH 4/8 drm/bridge: parade-ps8640: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/parade-ps8640.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/parade-ps8640.c +0 -1
@@ -20,7 +20,6 @@#include <drm/drm_edid.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #define PAGE0_AUXCH_CFG3 0x76
Signature · 1 line
2.34.1
Re: [PATCH 4/8] drm/bridge: parade-ps8640: remove unused drm_panel.h include
Hi,
Quoted 8 lines · Luca Ceresoli
The file uses the
panel_bridgeAPIs fromdrm_bridge.h, but nodrm_panelAPIs fromdrm_panel.h.Signed-off-by Luca Ceresoli <[email protected]>--- drivers/gpu/drm/bridge/parade-ps8640.c | 1 - 1 file changed, 1 deletion(-)
Luca Ceresoli
reviewerPATCH 5/8 drm/bridge: tc358762: remove unused drm_panel.h include, add drm_bridge.h
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, which is included only indirectly, and uses no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/tc358762.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/tc358762.c +1 -1
@@ -20,10 +20,10 @@#include <video/mipi_display.h> #include <drm/drm_atomic_helper.h> +#include <drm/drm_bridge.h> #include <drm/drm_crtc.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.34.1
Luca Ceresoli
reviewerPATCH 6/8 drm/bridge: tc358775: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/tc358775.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/tc358775.c +0 -1
@@ -26,7 +26,6 @@#include <drm/drm_bridge.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_probe_helper.h> #define FLD_VAL (val, start, end) FIELD_PREP(GENMASK(start, end), val)
Signature · 1 line
2.34.1
Luca Ceresoli
reviewerPATCH 7/8 drm/bridge: ti-sn65dsi83: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/ti-sn65dsi83.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/ti-sn65dsi83.c +0 -1
@@ -40,7 +40,6 @@#include <drm/drm_bridge.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.34.1
Luca Ceresoli
reviewerPATCH 8/8 drm/bridge: ti-sn65dsi86: remove unused drm_panel.h include
In reply to Luca CeresoliThe file uses the panel_bridge APIs from drm_bridge.h, but no drm_panel APIs from drm_panel.h.
--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +0 -1
@@ -32,7 +32,6 @@#include <drm/drm_edid.h> #include <drm/drm_mipi_dsi.h> #include <drm/drm_of.h> -#include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h>
Signature · 1 line
2.34.1
Re: [PATCH 8/8] drm/bridge: ti-sn65dsi86: remove unused drm_panel.h include
Hi,
Quoted 8 lines · Luca Ceresoli
The file uses the
panel_bridgeAPIs fromdrm_bridge.h, but nodrm_panelAPIs fromdrm_panel.h.Signed-off-by Luca Ceresoli <[email protected]>--- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 - 1 file changed, 1 deletion(-)
I'm not sure I'd really even say it uses any "panel_bridge" APIs, but that's a bit of a nitpick. In any case:
Quoted 26 lines · Luca Ceresoli
This series removes some unnecessary #includes and and unused forward declarations, which I noticed while preparing a way more complex series (bridge hotplug). I decided to split these trivial patches to a separate series to limit the noise on the larger series.
Signed-off-by Luca Ceresoli <[email protected]>---
Luca Ceresoli (8):
drm/panel: remove unnecessary forward declaration drm/bridge: nxp-ptn3460: remove unuseddrm_panel.hinclude drm/bridge: parade-ps8622: remove unuseddrm_panel.hinclude drm/bridge: parade-ps8640: remove unuseddrm_panel.hinclude drm/bridge: tc358762: remove unuseddrm_panel.hinclude, adddrm_bridge.hdrm/bridge: tc358775: remove unuseddrm_panel.hinclude drm/bridge: ti-sn65dsi83: remove unuseddrm_panel.hinclude drm/bridge: ti-sn65dsi86: remove unuseddrm_panel.hincludedrivers/gpu/drm/bridge/nxp-ptn3460.c | 1 - drivers/gpu/drm/bridge/parade-ps8622.c | 1 - drivers/gpu/drm/bridge/parade-ps8640.c | 1 - drivers/gpu/drm/bridge/tc358762.c | 2 +- drivers/gpu/drm/bridge/tc358775.c | 1 - drivers/gpu/drm/bridge/ti-sn65dsi83.c | 1 - drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 - include/drm/drm_panel.h | 1 - 8 files changed, 1 insertion(+), 8 deletions(-)
Quoted 4 lines
---
base-commit:2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250206-drm-cleanups-b78703e04e9f
For the series:
Signature · 2 lines
With best wishes Dmitry
Quoted 6 lines · Luca Ceresoli
This series removes some unnecessary #includes and and unused forward declarations, which I noticed while preparing a way more complex series (bridge hotplug). I decided to split these trivial patches to a separate series to limit the noise on the larger series.
Applied, thanks!
[1/8] drm/panel: remove unnecessary forward declaration
https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/66ac08bb7788 [2/8] drm/bridge: nxp-ptn3460: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/f4e71f660368 [3/8] drm/bridge: parade-ps8622: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/202f3f60d174 [4/8] drm/bridge: parade-ps8640: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/10fab0675483 [5/8] drm/bridge: tc358762: remove unused drm_panel.h include, add drm_bridge.h https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/38e092786e54 [6/8] drm/bridge: tc358775: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/2ac2ff99962a [7/8] drm/bridge: ti-sn65dsi83: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/5199ffb87f78 [8/8] drm/bridge: ti-sn65dsi86: remove unused drm_panel.h include https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/0e9cb79ce49b
Rob