* [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations
@ 2025-05-06 6:22 Ahmad Fatoum
2025-05-06 6:22 ` [PATCH 2/2] video: Rockchip: drop unused declarations Ahmad Fatoum
2025-05-06 7:23 ` [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Sascha Hauer
0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-05-06 6:22 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
None of these types are actually used, so drop their forward
declaration.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/video/imx-ipu-v3/ipuv3-plane.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/video/imx-ipu-v3/ipuv3-plane.h b/drivers/video/imx-ipu-v3/ipuv3-plane.h
index cade98e3e96b..af8c13376cfd 100644
--- a/drivers/video/imx-ipu-v3/ipuv3-plane.h
+++ b/drivers/video/imx-ipu-v3/ipuv3-plane.h
@@ -2,11 +2,7 @@
#ifndef __IPUV3_PLANE_H__
#define __IPUV3_PLANE_H__
-struct drm_plane;
-struct drm_device;
struct ipu_soc;
-struct drm_crtc;
-struct drm_framebuffer;
struct ipuv3_channel;
struct dmfc_channel;
--
2.39.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] video: Rockchip: drop unused declarations
2025-05-06 6:22 [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Ahmad Fatoum
@ 2025-05-06 6:22 ` Ahmad Fatoum
2025-05-06 7:23 ` [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Sascha Hauer
1 sibling, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-05-06 6:22 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
These definitions are a left over from the original Linux code, but are
wholly unused in barebox, so they can be safely dropped.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/video/rockchip/rockchip_drm_drv.h | 21 ---------------------
drivers/video/rockchip/rockchip_drm_vop.h | 2 --
2 files changed, 23 deletions(-)
diff --git a/drivers/video/rockchip/rockchip_drm_drv.h b/drivers/video/rockchip/rockchip_drm_drv.h
index 9bc480ee049e..ad8edb76e6d9 100644
--- a/drivers/video/rockchip/rockchip_drm_drv.h
+++ b/drivers/video/rockchip/rockchip_drm_drv.h
@@ -30,37 +30,16 @@
/* output flags */
#define ROCKCHIP_OUTPUT_DSI_DUAL BIT(0)
-struct drm_device;
-struct drm_connector;
-struct iommu_domain;
-
struct rockchip_crtc_state {
int output_type;
int output_mode;
int output_bpc;
int output_flags;
- bool enable_afbc;
bool yuv_overlay;
u32 bus_format;
u32 bus_flags;
- int color_space;
};
#define to_rockchip_crtc_state(s) \
container_of(s, struct rockchip_crtc_state, base)
-/*
- * Rockchip drm private structure.
- *
- * @crtc: array of enabled CRTCs, used to map from "pipe" to drm_crtc.
- * @num_pipe: number of pipes for this device.
- * @mm_lock: protect drm_mm on multi-threads.
- */
-struct rockchip_drm_private {
- struct device *iommu_dev;
-};
-
-struct rockchip_encoder {
- int crtc_endpoint_id;
-};
-
#endif /* _ROCKCHIP_DRM_DRV_H_ */
diff --git a/drivers/video/rockchip/rockchip_drm_vop.h b/drivers/video/rockchip/rockchip_drm_vop.h
index 255b6aa165ee..d4649910e861 100644
--- a/drivers/video/rockchip/rockchip_drm_vop.h
+++ b/drivers/video/rockchip/rockchip_drm_vop.h
@@ -419,6 +419,4 @@ static inline int scl_vop_cal_lb_mode(int width, bool is_yuv)
return lb_mode;
}
-
-extern const struct component_ops vop_component_ops;
#endif /* _ROCKCHIP_DRM_VOP_H */
--
2.39.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations
2025-05-06 6:22 [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Ahmad Fatoum
2025-05-06 6:22 ` [PATCH 2/2] video: Rockchip: drop unused declarations Ahmad Fatoum
@ 2025-05-06 7:23 ` Sascha Hauer
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2025-05-06 7:23 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Tue, 06 May 2025 08:22:18 +0200, Ahmad Fatoum wrote:
> None of these types are actually used, so drop their forward
> declaration.
>
>
Applied, thanks!
[1/2] video: ipuv3: drop unused drm_ forward declarations
https://git.pengutronix.de/cgit/barebox/commit/?id=25f7fdc64e0a (link may not be stable)
[2/2] video: Rockchip: drop unused declarations
https://git.pengutronix.de/cgit/barebox/commit/?id=eee191e7c730 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-06 7:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-06 6:22 [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Ahmad Fatoum
2025-05-06 6:22 ` [PATCH 2/2] video: Rockchip: drop unused declarations Ahmad Fatoum
2025-05-06 7:23 ` [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox