Skip to contentSkip to conversation

dmaengine: qcom: gpi: remove unused struct 'gpi_desc'

PATCH Superseded [email protected] 2 participants 3 messages May 16, 2024

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: qcom: gpi: remove unused struct 'gpi_desc'

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

'gpi_desc' seems like it was never used.
Remove it.

---
 drivers/dma/qcom/gpi.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/dma/qcom/gpi.c +0 -6
index 1c93864e0e4d..639ab304db9b 100644
@@ -476,12 +476,6 @@ struct gpi_dev {
 	struct gpii *gpiis;
 };
 
-struct reg_info {
-	char *name;
-	u32 offset;
-	u32 val;
-};
-
 struct gchan {
 	struct virt_dma_chan vc;
 	u32 chid;
Signature · 1 line
2.45.0
#1 lore raw
Quoted 4 lines · On Thu, May 16, 2024 at 02:32:11PM +0100, [email protected] wrote:

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

'gpi_desc' seems like it was never used.
Remove it.

code change show 'reg_info', not 'gpi_desc'. You need make sure that it really is not used, not "seems like".

'struct reg_info' is never used, so remove it.

Quoted 26 lines
---
 drivers/dma/qcom/gpi.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/dma/qcom/gpi.c +0 -6
index 1c93864e0e4d..639ab304db9b 100644
@@ -476,12 +476,6 @@ struct gpi_dev {
 	struct gpii *gpiis;
 };
 
-struct reg_info {
-	char *name;
-	u32 offset;
-	u32 val;
-};
-
 struct gchan {
 	struct virt_dma_chan vc;
 	u32 chid;
Signature · 1 line
2.45.0
#2 lore raw
Quoted 8 lines · * Frank Li ([email protected]) wrote:
Quoted 4 lines · On Thu, May 16, 2024 at 02:32:11PM +0100, [email protected] wrote:

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

'gpi_desc' seems like it was never used.
Remove it.

code change show 'reg_info', not 'gpi_desc'. You need make sure that it really is not used, not "seems like".

Oops that was a cut-and-paste when I did the commit on the name.

It was build tested.

V2 coming along now.

Dave

Quoted 28 lines

'struct reg_info' is never used, so remove it.

Quoted 26 lines
---
 drivers/dma/qcom/gpi.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/dma/qcom/gpi.c +0 -6
index 1c93864e0e4d..639ab304db9b 100644
@@ -476,12 +476,6 @@ struct gpi_dev {
 	struct gpii *gpiis;
 };
 
-struct reg_info {
-	char *name;
-	u32 offset;
-	u32 val;
-};
-
 struct gchan {
 	struct virt_dma_chan vc;
 	u32 chid;
Signature · 1 line
2.45.0
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   |_______/