Skip to contentSkip to conversation

x86: ce4100: Remove unused struct 'sim_reg_op'

PATCH Applied [email protected] 3 participants 3 messages May 7, 2024 – May 8, 2024

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

PATCH v2 1/1 x86: ce4100: Remove unused struct 'sim_reg_op'

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

struct 'sim_reg_op' doesn't look like it was ever used. Remove it.

---
 arch/x86/pci/ce4100.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/pci/ce4100.c +0 -6
index 87313701f069e..f5dbd25651e0f 100644
@@ -35,12 +35,6 @@ struct sim_dev_reg {
 	struct sim_reg sim_reg;
 };
 
-struct sim_reg_op {
-	void (*init)(struct sim_dev_reg *reg);
-	void (*read)(struct sim_dev_reg *reg, u32 value);
-	void (*write)(struct sim_dev_reg *reg, u32 value);
-};
-
 #define MB (1024 * 1024)
 #define KB (1024)
 #define SIZE_TO_MASK(size) (~(size - 1))
Signature · 1 line
2.45.0
#1 lore raw

[tip: x86/cleanups] x86/pci/ce4100: Remove unused 'struct sim_reg_op'

The following commit has been merged into the x86/cleanups branch of tip:

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     ad3bd7659b68add28920982e02233b5dc4b483c3
Gitweb:        https://git.kernel.org/tip/ad3bd7659b68add28920982e02233b5dc4b483c3
Author:        Dr. David Alan Gilbert <[email protected]>
AuthorDate:    Wed, 08 May 2024 00:23:48 +01:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Wed, 08 May 2024 09:17:17 +02:00

x86/pci/ce4100: Remove unused 'struct sim_reg_op'

'struct sim_reg_op' wasn't ever used since it was introduced 14 years ago via:

91d8037f563e ("ce4100: Add PCI register emulation for CE4100")

Remove it.

[ mingo: Improved the changelog. ]

---
 arch/x86/pci/ce4100.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/pci/ce4100.c +0 -6
index 8731370..f5dbd25 100644
@@ -35,12 +35,6 @@ struct sim_dev_reg {
 	struct sim_reg sim_reg;
 };
 
-struct sim_reg_op {
-	void (*init)(struct sim_dev_reg *reg);
-	void (*read)(struct sim_dev_reg *reg, u32 value);
-	void (*write)(struct sim_dev_reg *reg, u32 value);
-};
-
 #define MB (1024 * 1024)
 #define KB (1024)
 #define SIZE_TO_MASK(size) (~(size - 1))
Reviewed-by on v2 1/1
#2 lore raw
In reply to [email protected]
Quoted 15 lines · On Wed, 8 May 2024, [email protected] wrote:

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

struct 'sim_reg_op' doesn't look like it was ever used. Remove it.

---
 arch/x86/pci/ce4100.c | 6 ------
 1 file changed, 6 deletions(-)
arch/x86/pci/ce4100.c +0 -0
index 87313701f069e..f5dbd25651e0f 100644

arch/x86/pci/ce4100.c struct sim_dev_reg { · line 43

Quoted 9 lines
arch/x86/pci/ce4100.c +0 -6
@@ -35,12 +35,6 @@ struct sim_dev_reg {
 	struct sim_reg sim_reg;
 };
 
-struct sim_reg_op {
-	void (*init)(struct sim_dev_reg *reg);
-	void (*read)(struct sim_dev_reg *reg, u32 value);
-	void (*write)(struct sim_dev_reg *reg, u32 value);
-};
-

Thanks.

Signature · 1 line
 i.