Skip to contentSkip to conversation

drm/bridge: minor cleanups

PATCH Applied Luca Ceresoli 4 participants 14 messages Feb 6, 2025 – Feb 10, 2025

Subsystems (6)
lore
Share & tools
lore

Luca Ceresoli

author reviewer
#0 lore raw

cover 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]>
author reviewer
#1 lore raw

PATCH 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
index 10015891b056f816c7a992a2052b36fd26943c5b..a9c042c8dea1a82ef979c7a68204e0b55483fc28 100644
@@ -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
reviewer Reviewed-by on v1 1/8
#2 lore raw

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 commit aa6c43644bc5 ("drm/panel: drop drm_device from drm_panel").

---
 include/drm/drm_panel.h | 1 -
 1 file changed, 1 deletion(-)
author reviewer
#3 lore raw

PATCH 2/8 drm/bridge: nxp-ptn3460: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index 44e36ae66db487c871712432eecfcb0d68a28da4..27261b2ac9c83c311201b20f02aef7afeb6475b2 100644
@@ -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
author reviewer
#4 lore raw

PATCH 3/8 drm/bridge: parade-ps8622: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index ae3ab9262ef1f184873929c7892d648a32c7cf37..13ada42a55142cd22696671e8fb363bee6d6aa68 100644
@@ -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
author reviewer
#5 lore raw

PATCH 4/8 drm/bridge: parade-ps8640: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index 14d4dcf239da835955f1d594579dd165288bd63f..b0e38177c1ecb803e5e61b223b2bd7568c36de25 100644
@@ -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
author reviewer
#7 lore raw

PATCH 5/8 drm/bridge: tc358762: remove unused drm_panel.h include, add drm_bridge.h

In reply to Luca Ceresoli

The 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
index 46198af9eebbf8cced7b9b4ad628126f144c25dd..f92aff3d515a3354f7e447495adb3e18514b029a 100644
@@ -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
author reviewer
#8 lore raw

PATCH 6/8 drm/bridge: tc358775: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index 0b4efaca6d682320b76ce09ed41824ae7f84ca2d..c89757bec4e6cc59ea0e84b1096ba71b077d408e 100644
@@ -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
author reviewer
#9 lore raw

PATCH 7/8 drm/bridge: ti-sn65dsi83: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index 336380114eea901551c94d62234d4d3df5d38443..f6728c491cc5c6d90d93b733c46732f80cdebf69 100644
@@ -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
author reviewer
#10 lore raw

PATCH 8/8 drm/bridge: ti-sn65dsi86: remove unused drm_panel.h include

In reply to Luca Ceresoli

The 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
index e4d9006b59f1b975cf63e26b221e985206caf867..e9cd0fcc837f1960bdfbcad46bd13f7d526d5ca8 100644
@@ -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
reviewer Reviewed-by on v1 8/8
#11 lore raw

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_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(-)

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:

Reviewed-by on the v1 series
#12 lore raw
In reply to Luca Ceresoli
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.

---
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(-)
Quoted 4 lines

---
base-commit: 2014c95afecee3e76ca4a56956a936e23283f05b
change-id: 20250206-drm-cleanups-b78703e04e9f

For the series:

Signature · 2 lines
With best wishes
Dmitry
maintainer Applied
#13 lore raw
In reply to Luca Ceresoli
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