linux-fpga.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fpga: dfl: remove unused function is_dfl_feature_present
@ 2024-04-02 22:20 Peter Colberg
  2024-04-13  3:39 ` Xu Yilun
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Colberg @ 2024-04-02 22:20 UTC (permalink / raw)
  To: Wu Hao, Tom Rix, Moritz Fischer, Xu Yilun, linux-fpga,
	linux-kernel
  Cc: Russ Weight, Marco Pagani, Matthew Gerlach, Peter Colberg

The function is_dfl_feature_present was added in commit 5b57d02a2f94
("fpga: dfl: add feature device infrastructure") but never used.

Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
---
 drivers/fpga/dfl.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h
index 1d724a28f00a..5063d73b0d82 100644
--- a/drivers/fpga/dfl.h
+++ b/drivers/fpga/dfl.h
@@ -437,11 +437,6 @@ void __iomem *dfl_get_feature_ioaddr_by_id(struct device *dev, u16 id)
 	return NULL;
 }
 
-static inline bool is_dfl_feature_present(struct device *dev, u16 id)
-{
-	return !!dfl_get_feature_ioaddr_by_id(dev, id);
-}
-
 static inline
 struct device *dfl_fpga_pdata_to_parent(struct dfl_feature_platform_data *pdata)
 {
-- 
2.44.0


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

* Re: [PATCH] fpga: dfl: remove unused function is_dfl_feature_present
  2024-04-02 22:20 [PATCH] fpga: dfl: remove unused function is_dfl_feature_present Peter Colberg
@ 2024-04-13  3:39 ` Xu Yilun
  0 siblings, 0 replies; 2+ messages in thread
From: Xu Yilun @ 2024-04-13  3:39 UTC (permalink / raw)
  To: Peter Colberg
  Cc: Wu Hao, Tom Rix, Moritz Fischer, Xu Yilun, linux-fpga,
	linux-kernel, Russ Weight, Marco Pagani, Matthew Gerlach

On Tue, Apr 02, 2024 at 06:20:38PM -0400, Peter Colberg wrote:
> The function is_dfl_feature_present was added in commit 5b57d02a2f94
> ("fpga: dfl: add feature device infrastructure") but never used.

Same git commit reference problem, please see:

https://lore.kernel.org/all/Zhn8bjex94DpkGBw@yilunxu-OptiPlex-7050/

Thanks,
Yilun

> 
> Signed-off-by: Peter Colberg <peter.colberg@intel.com>
> Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
> ---
>  drivers/fpga/dfl.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/fpga/dfl.h b/drivers/fpga/dfl.h
> index 1d724a28f00a..5063d73b0d82 100644
> --- a/drivers/fpga/dfl.h
> +++ b/drivers/fpga/dfl.h
> @@ -437,11 +437,6 @@ void __iomem *dfl_get_feature_ioaddr_by_id(struct device *dev, u16 id)
>  	return NULL;
>  }
>  
> -static inline bool is_dfl_feature_present(struct device *dev, u16 id)
> -{
> -	return !!dfl_get_feature_ioaddr_by_id(dev, id);
> -}
> -
>  static inline
>  struct device *dfl_fpga_pdata_to_parent(struct dfl_feature_platform_data *pdata)
>  {
> -- 
> 2.44.0
> 
> 

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

end of thread, other threads:[~2024-04-13  3:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-02 22:20 [PATCH] fpga: dfl: remove unused function is_dfl_feature_present Peter Colberg
2024-04-13  3:39 ` 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).