linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map'
@ 2024-05-30 20:52 linux
  2024-05-31 16:45 ` Russ Weight
  2024-06-11  8:16 ` Xu Yilun
  0 siblings, 2 replies; 5+ messages in thread
From: linux @ 2024-05-30 20:52 UTC (permalink / raw)
  To: mdf, hao.wu; +Cc: linux-fpga, linux-kernel, Dr. David Alan Gilbert

From: "Dr. David Alan Gilbert" <linux@treblig.org>

'prop_map' has been unused since the original
commit e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support").

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
---
 drivers/fpga/altera-fpga2sdram.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c
index 6b60ca004345..f4de3fea0b2d 100644
--- a/drivers/fpga/altera-fpga2sdram.c
+++ b/drivers/fpga/altera-fpga2sdram.c
@@ -75,12 +75,6 @@ static int alt_fpga2sdram_enable_set(struct fpga_bridge *bridge, bool enable)
 	return _alt_fpga2sdram_enable_set(bridge->priv, enable);
 }
 
-struct prop_map {
-	char *prop_name;
-	u32 *prop_value;
-	u32 prop_max;
-};
-
 static const struct fpga_bridge_ops altera_fpga2sdram_br_ops = {
 	.enable_set = alt_fpga2sdram_enable_set,
 	.enable_show = alt_fpga2sdram_enable_show,
-- 
2.45.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map'
  2024-05-30 20:52 [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map' linux
@ 2024-05-31 16:45 ` Russ Weight
  2024-06-11  8:16 ` Xu Yilun
  1 sibling, 0 replies; 5+ messages in thread
From: Russ Weight @ 2024-05-31 16:45 UTC (permalink / raw)
  To: linux; +Cc: mdf, hao.wu, linux-fpga, linux-kernel


On Thu, May 30, 2024 at 09:52:45PM +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> 'prop_map' has been unused since the original
> commit e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support").
> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>

Reviewed-by: Russ Weight <russ.weight@linux.dev>

> ---
>  drivers/fpga/altera-fpga2sdram.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c
> index 6b60ca004345..f4de3fea0b2d 100644
> --- a/drivers/fpga/altera-fpga2sdram.c
> +++ b/drivers/fpga/altera-fpga2sdram.c
> @@ -75,12 +75,6 @@ static int alt_fpga2sdram_enable_set(struct fpga_bridge *bridge, bool enable)
>  	return _alt_fpga2sdram_enable_set(bridge->priv, enable);
>  }
>  
> -struct prop_map {
> -	char *prop_name;
> -	u32 *prop_value;
> -	u32 prop_max;
> -};
> -
>  static const struct fpga_bridge_ops altera_fpga2sdram_br_ops = {
>  	.enable_set = alt_fpga2sdram_enable_set,
>  	.enable_show = alt_fpga2sdram_enable_show,
> -- 
> 2.45.1
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map'
  2024-05-30 20:52 [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map' linux
  2024-05-31 16:45 ` Russ Weight
@ 2024-06-11  8:16 ` Xu Yilun
  2024-06-11 10:41   ` Dr. David Alan Gilbert
  1 sibling, 1 reply; 5+ messages in thread
From: Xu Yilun @ 2024-06-11  8:16 UTC (permalink / raw)
  To: linux; +Cc: mdf, hao.wu, linux-fpga, linux-kernel

On Thu, May 30, 2024 at 09:52:45PM +0100, linux@treblig.org wrote:
> From: "Dr. David Alan Gilbert" <linux@treblig.org>

This is only needed if the person sending the patch is not the author.

> 
> 'prop_map' has been unused since the original
> commit e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support").

Please use 'fixes:' tag.

Thanks,
Yilun

> 
> Remove it.
> 
> Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> ---
>  drivers/fpga/altera-fpga2sdram.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c
> index 6b60ca004345..f4de3fea0b2d 100644
> --- a/drivers/fpga/altera-fpga2sdram.c
> +++ b/drivers/fpga/altera-fpga2sdram.c
> @@ -75,12 +75,6 @@ static int alt_fpga2sdram_enable_set(struct fpga_bridge *bridge, bool enable)
>  	return _alt_fpga2sdram_enable_set(bridge->priv, enable);
>  }
>  
> -struct prop_map {
> -	char *prop_name;
> -	u32 *prop_value;
> -	u32 prop_max;
> -};
> -
>  static const struct fpga_bridge_ops altera_fpga2sdram_br_ops = {
>  	.enable_set = alt_fpga2sdram_enable_set,
>  	.enable_show = alt_fpga2sdram_enable_show,
> -- 
> 2.45.1
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map'
  2024-06-11  8:16 ` Xu Yilun
@ 2024-06-11 10:41   ` Dr. David Alan Gilbert
  2024-06-14  2:21     ` Xu Yilun
  0 siblings, 1 reply; 5+ messages in thread
From: Dr. David Alan Gilbert @ 2024-06-11 10:41 UTC (permalink / raw)
  To: Xu Yilun; +Cc: mdf, hao.wu, linux-fpga, linux-kernel

* Xu Yilun (yilun.xu@linux.intel.com) wrote:
> On Thu, May 30, 2024 at 09:52:45PM +0100, linux@treblig.org wrote:
> > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> 
> This is only needed if the person sending the patch is not the author.
> 
> > 
> > 'prop_map' has been unused since the original
> > commit e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support").
> 
> Please use 'fixes:' tag.

I've avoided using fixes: on this series because it's not a bug;
stable and downstream maintainers use Fixes: to indicate that they
should pick up a patch on top of something they already have; there's
no need for anyone to backport this.

Dave

> Thanks,
> Yilun
> 
> > 
> > Remove it.
> > 
> > Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
> > ---
> >  drivers/fpga/altera-fpga2sdram.c | 6 ------
> >  1 file changed, 6 deletions(-)
> > 
> > diff --git a/drivers/fpga/altera-fpga2sdram.c b/drivers/fpga/altera-fpga2sdram.c
> > index 6b60ca004345..f4de3fea0b2d 100644
> > --- a/drivers/fpga/altera-fpga2sdram.c
> > +++ b/drivers/fpga/altera-fpga2sdram.c
> > @@ -75,12 +75,6 @@ static int alt_fpga2sdram_enable_set(struct fpga_bridge *bridge, bool enable)
> >  	return _alt_fpga2sdram_enable_set(bridge->priv, enable);
> >  }
> >  
> > -struct prop_map {
> > -	char *prop_name;
> > -	u32 *prop_value;
> > -	u32 prop_max;
> > -};
> > -
> >  static const struct fpga_bridge_ops altera_fpga2sdram_br_ops = {
> >  	.enable_set = alt_fpga2sdram_enable_set,
> >  	.enable_show = alt_fpga2sdram_enable_show,
> > -- 
> > 2.45.1
> > 
> > 
> 
-- 
 -----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   |_______/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map'
  2024-06-11 10:41   ` Dr. David Alan Gilbert
@ 2024-06-14  2:21     ` Xu Yilun
  0 siblings, 0 replies; 5+ messages in thread
From: Xu Yilun @ 2024-06-14  2:21 UTC (permalink / raw)
  To: Dr. David Alan Gilbert; +Cc: mdf, hao.wu, linux-fpga, linux-kernel

On Tue, Jun 11, 2024 at 10:41:23AM +0000, Dr. David Alan Gilbert wrote:
> * Xu Yilun (yilun.xu@linux.intel.com) wrote:
> > On Thu, May 30, 2024 at 09:52:45PM +0100, linux@treblig.org wrote:
> > > From: "Dr. David Alan Gilbert" <linux@treblig.org>
> > 
> > This is only needed if the person sending the patch is not the author.
> > 
> > > 
> > > 'prop_map' has been unused since the original
> > > commit e5f8efa5c8bf ("ARM: socfpga: fpga bridge driver support").
> > 
> > Please use 'fixes:' tag.
> 
> I've avoided using fixes: on this series because it's not a bug;
> stable and downstream maintainers use Fixes: to indicate that they
> should pick up a patch on top of something they already have; there's
> no need for anyone to backport this.

It's good to me.

Acked-by: Xu Yilun <yilun.xu@intel.com>

Applied to for-next.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-14  2:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30 20:52 [PATCH] fpga: altera-fpga2sdram: remove unused struct 'prop_map' linux
2024-05-31 16:45 ` Russ Weight
2024-06-11  8:16 ` Xu Yilun
2024-06-11 10:41   ` Dr. David Alan Gilbert
2024-06-14  2:21     ` Xu Yilun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).