dmaengine: qcom: gpi: remove unused struct 'reg_info'
Subsystems (2)
PATCH v2 1/1 dmaengine: qcom: gpi: remove unused struct 'reg_info'
From: "Dr. David Alan Gilbert" <[email protected]>
Remove unused struct 'reg_info'
--- drivers/dma/qcom/gpi.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/dma/qcom/gpi.c +0 -6
@@ -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
Quoted 16 lines · On 16/05/2024 17:25, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Remove unused struct '
reg_info'Signed-off-by Dr. David Alan Gilbert <[email protected]>--- drivers/dma/qcom/gpi.c | 6 ------ 1 file changed, 6 deletions(-)drivers/dma/qcom/gpi.c +0
-0@@ -476,12 +476,6 @@ struct gpi_dev {struct gpii *gpiis; };
drivers/dma/qcom/gpi.c struct gpi_dev { · line 481
Quoted 10 lines
drivers/dma/qcom/gpi.c +0
-6-struct reg_info { -char *name; -u32 offset; -u32 val; -}; -struct gchan {struct virt_dma_chan vc;u32 chid;
More detail in the commit log please - is the structure unused ? What is the provenance of it being added and becoming dead code.
More detail required here.
---
bod
Quoted 10 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 9 lines · On 16/05/2024 17:25, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Remove unused struct '
reg_info'Signed-off-by Dr. David Alan Gilbert <[email protected]>--- drivers/dma/qcom/gpi.c | 6 ------ 1 file changed, 6 deletions(-)
Quoted 16 lines
Quoted 6 lines
drivers/dma/qcom/gpi.c +0
-0@@ -476,12 +476,6 @@ struct gpi_dev {struct gpii *gpiis;drivers/dma/qcom/gpi.c struct gpi_dev { · line 480
Quoted 10 lines
drivers/dma/qcom/gpi.c +0
-6}; -struct reg_info { -char *name; -u32 offset; -u32 val; -}; -struct gchan {struct virt_dma_chan vc;u32 chid;
Hi Bryan,
Quoted 4 lines
More detail in the commit log please - is the structure unused ? What is the provenance of it being added and becoming dead code.
More detail required here.
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'
but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
I could change this to:
'gpi_desc' was never used since it's initial commit 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver")
Would you be OK with that?
Dave
Quoted 4 lines
---
bod
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 |_______/
Quoted 39 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 10 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 9 lines · On 16/05/2024 17:25, [email protected] wrote:
From: "Dr. David Alan Gilbert" <[email protected]>
Remove unused struct '
reg_info'Signed-off-by Dr. David Alan Gilbert <[email protected]>--- drivers/dma/qcom/gpi.c | 6 ------ 1 file changed, 6 deletions(-)Quoted 16 lines
Quoted 6 lines
drivers/dma/qcom/gpi.c +0
-0@@ -476,12 +476,6 @@ struct gpi_dev {struct gpii *gpiis;drivers/dma/qcom/gpi.c struct gpi_dev { · line 480
Quoted 10 lines
drivers/dma/qcom/gpi.c +0
-6}; -struct reg_info { -char *name; -u32 offset; -u32 val; -}; -struct gchan {struct virt_dma_chan vc;u32 chid;Hi Bryan,
Quoted 4 lines
More detail in the commit log please - is the structure unused ? What is the provenance of it being added and becoming dead code.
More detail required here.
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'
Quoted 7 lines
but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
I could change this to:
'
gpi_desc' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver")
Oops, of course I mean 'reg_info' which is what I fixed in v2.
Quoted 1 line
Would you be OK with that?
Dave
Quoted 13 lines
Dave
Quoted 4 lines
---
bodSignature · 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 |_______/
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 |_______/
Quoted 7 lines · Dr. David Alan Gilbert
Quoted 7 lines
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
Quoted 10 lines
Quoted 4 lines
I could change this to:
'
gpi_desc' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver")Oops, of course I mean '
reg_info' which is what I fixed in v2.Quoted 1 line
Would you be OK with that?
Dave
Quoted 1 line
Dave
Hi Dave,
I saw your v1 interaction after commenting but, I still think commits that say "this removes a data structure" should elaborate more.
"This structure is no longer used since commit: 12charsubshahere" or "This structure was never used and should be considered dead code"
I generally hope the intention of my commits is clear from the code with the commit log adding whatever context or elaboration on top.
So that's what I'm suggesting here. A bit of commit log sugar on top which elaborates on and justifies the change.
---
bod
Quoted 24 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 7 lines · Dr. David Alan Gilbert
Quoted 7 lines
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
Quoted 10 lines
Quoted 4 lines
I could change this to:
'
gpi_desc' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver")Oops, of course I mean '
reg_info' which is what I fixed in v2.Quoted 1 line
Would you be OK with that?
Dave
Quoted 1 line
Dave
Hi Dave,
I saw your v1 interaction after commenting but, I still think commits that say "this removes a data structure" should elaborate more.
Quoted 8 lines
"This structure is no longer used since commit: 12charsubshahere" or "This structure was never used and should be considered dead code"
I generally hope the intention of my commits is clear from the code with the commit log adding whatever context or elaboration on top.
So that's what I'm suggesting here. A bit of commit log sugar on top which elaborates on and justifies the change.
OK, so how about the version I suggested above:
'reg_info' was never used since it's initial commit 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver") Remove it.
Is that OK with you?
Dave
Quoted 4 lines
---
bod
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 |_______/
Bryan O'Donoghue
Reviewed-byQuoted 36 lines · Dr. David Alan Gilbert
Quoted 24 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 7 lines · Dr. David Alan Gilbert
Quoted 7 lines
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
Quoted 10 lines
Quoted 4 lines
I could change this to:
'
gpi_desc' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver")Oops, of course I mean '
reg_info' which is what I fixed in v2.Quoted 1 line
Would you be OK with that?
Dave
Quoted 1 line
Dave
Hi Dave,
I saw your v1 interaction after commenting but, I still think commits that say "this removes a data structure" should elaborate more.
Quoted 8 lines
"This structure is no longer used since commit: 12charsubshahere" or "This structure was never used and should be considered dead code"
I generally hope the intention of my commits is clear from the code with the commit log adding whatever context or elaboration on top.
So that's what I'm suggesting here. A bit of commit log sugar on top which elaborates on and justifies the change.
OK, so how about the version I suggested above:
Quoted 12 lines
'
reg_info' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver") Remove it.Is that OK with you?
Dave
Quoted 4 lines
---
bod
LGTM
Quoted 46 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 45 lines · Dr. David Alan Gilbert
Quoted 24 lines · * Bryan O'Donoghue ([email protected]) wrote:
Quoted 7 lines · Dr. David Alan Gilbert
Quoted 7 lines
If you look at the V1 I had
''gpi_desc' seems like it was never used.
Remove it.'but Frank suggested copying the subject line; so I'm not sure whether you want more or less!
Quoted 10 lines
Quoted 4 lines
I could change this to:
'
gpi_desc' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver")Oops, of course I mean '
reg_info' which is what I fixed in v2.Quoted 1 line
Would you be OK with that?
Dave
Quoted 1 line
Dave
Hi Dave,
I saw your v1 interaction after commenting but, I still think commits that say "this removes a data structure" should elaborate more.
Quoted 8 lines
"This structure is no longer used since commit: 12charsubshahere" or "This structure was never used and should be considered dead code"
I generally hope the intention of my commits is clear from the code with the commit log adding whatever context or elaboration on top.
So that's what I'm suggesting here. A bit of commit log sugar on top which elaborates on and justifies the change.
OK, so how about the version I suggested above:
'
reg_info' was never used since it's initial commit5d0c3533a19f("dmaengine: qcom: Add GPI dma driver") Remove it.Is that OK with you?
Dave
Quoted 1 line
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
---
bodLGTM
Reviewed-by Bryan O'Donoghue <[email protected]>
Thanks, v3 sent and copied to you with that RB added.
Dave
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 |_______/