mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] video: Rockchip: drop unused declarations
Date: Tue,  6 May 2025 08:22:19 +0200	[thread overview]
Message-ID: <20250506062219.3091457-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250506062219.3091457-1-a.fatoum@pengutronix.de>

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




  reply	other threads:[~2025-05-06  6:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-06  6:22 [PATCH 1/2] video: ipuv3: drop unused drm_ forward declarations Ahmad Fatoum
2025-05-06  6:22 ` Ahmad Fatoum [this message]
2025-05-06  7:23 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250506062219.3091457-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox