Skip to contentSkip to conversation

media dead struct removal

PATCH In review [email protected] 1 participant 5 messages May 25, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover media dead struct removal

From: "Dr. David Alan Gilbert" <[email protected]>

Dead struct removal in spi and usb.

(These are the last of my struct removal in media as far as I know).

Dave

Dr. David Alan Gilbert (3):
media: gs1662: remove unused struct 'gs_reg_fmt_custom'
media: opera1: remove unused struct 'rc_map_opera_table'
media: pvrusb2: remove unused struct 'debugifc_mask_item'

 drivers/media/spi/gs1662.c                   | 8 --------
 drivers/media/usb/dvb-usb/opera1.c           | 4 ----
 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c | 5 -----
 3 files changed, 17 deletions(-)
Signature · 1 line
2.45.1
#1 lore raw

PATCH 1/3 media: gs1662: remove unused struct 'gs_reg_fmt_custom'

From: "Dr. David Alan Gilbert" <[email protected]>

'gs_reg_fmt_custom' is unused since the original commit 7aae6e2df127 ("[media] Add GS1662 driver, a video serializer").

Remove it.

---
 drivers/media/spi/gs1662.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/media/spi/gs1662.c +0 -8
index dc5c4c055d29..7adf55fd0707 100644
@@ -55,14 +55,6 @@ struct gs_reg_fmt {
 	struct v4l2_dv_timings format;
 };
 
-struct gs_reg_fmt_custom {
-	u16 reg_value;
-	__u32 width;
-	__u32 height;
-	__u64 pixelclock;
-	__u32 interlaced;
-};
-
 static const struct spi_device_id gs_id[] = {
 	{ "gs1662", 0 },
 	{ }
Signature · 1 line
2.45.1
#2 lore raw

PATCH 2/3 media: opera1: remove unused struct 'rc_map_opera_table'

In reply to [email protected]

From: "Dr. David Alan Gilbert" <[email protected]>

'rc_map_opera_table' has been unused since
commit 2f4f58d689dd ("[media] rc: Name RC keymap tables as rc_map_table").

Remove it.

---
 drivers/media/usb/dvb-usb/opera1.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/media/usb/dvb-usb/opera1.c +0 -4
index d269f8bb2dee..268f05fc8691 100644
@@ -32,10 +32,6 @@
 struct opera1_state {
 	u32 last_key_pressed;
 };
-struct rc_map_opera_table {
-	u32 keycode;
-	u32 event;
-};
 
 static int dvb_usb_opera1_debug;
 module_param_named(debug, dvb_usb_opera1_debug, int, 0644);
Signature · 1 line
2.45.1
#3 lore raw

PATCH 3/3 media: pvrusb2: remove unused struct 'debugifc_mask_item'

In reply to [email protected]

From: "Dr. David Alan Gilbert" <[email protected]>

'debugifc_mask_item' is unused since
commit 681c73994401 ("V4L/DVB (6691): pvrusb2: Rework pipeline state control").

Remove it.

---
 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/media/usb/pvrusb2/pvrusb2-debugifc.c +0 -5
index 84cfb5ce8b8d..81d711269ab5 100644
@@ -9,11 +9,6 @@
 #include "pvrusb2-hdw.h"
 #include "pvrusb2-debug.h"
 
-struct debugifc_mask_item {
-	const char *name;
-	unsigned long msk;
-};
-
 
 static unsigned int debugifc_count_whitespace(const char *buf,
 					      unsigned int count)
Signature · 1 line
2.45.1
#4 lore raw
In reply to [email protected]
Quoted 9 lines · * [email protected] ([email protected]) wrote:

From: "Dr. David Alan Gilbert" <[email protected]>

Dead struct removal in spi and usb.

(These are the last of my struct removal in media as far as I know).

Note there's a bounce for:
Charles-Antoine Couret <[email protected]> (maintainer:GS1662 VIDEO SERIALIZER)

[email protected]
host mx0.mail.ovh.net [178.33.252.245]
SMTP error from remote mail server after RCPT TO:<[email protected]>:
550 5.1.1 <[email protected]>:
Recipient address rejected: User unknown

Quoted 15 lines

Dave

Dr. David Alan Gilbert (3):
media: gs1662: remove unused struct 'gs_reg_fmt_custom'
media: opera1: remove unused struct 'rc_map_opera_table'
media: pvrusb2: remove unused struct 'debugifc_mask_item'

 drivers/media/spi/gs1662.c                   | 8 --------
 drivers/media/usb/dvb-usb/opera1.c           | 4 ----
 drivers/media/usb/pvrusb2/pvrusb2-debugifc.c | 5 -----
 3 files changed, 17 deletions(-)
Signature · 1 line
2.45.1
Signature · 4 lines
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\        dave @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/