Skip to contentSkip to conversation

fpga: dfl: remove unused function is_dfl_feature_present

PATCH Applied Peter Colberg 2 participants 2 messages Apr 15, 2024 – Apr 19, 2024

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

PATCH v2 1/1 fpga: dfl: remove unused function is_dfl_feature_present

The function is_dfl_feature_present was added but never used.

Fixes 5b57d02a2f94 ("fpga: dfl: add feature device infrastructure")

---
v2:
- Do not wrap commit reference and move to Fixes: tag.

---
 drivers/fpga/dfl.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/fpga/dfl.h +0 -5
index 1d724a28f00a..5063d73b0d82 100644
@@ -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)
 {
Signature · 1 line
2.44.0
Applied
#1 lore raw
Quoted 1 line · Peter Colberg

The function is_dfl_feature_present was added but never used.

                                    ^

Function reference should use the format "function_name()", I fixed it in place.

Applied to for-next.

Quoted 31 lines
Fixes 5b57d02a2f94 ("fpga: dfl: add feature device infrastructure")

---
v2:
- Do not wrap commit reference and move to Fixes: tag.

---
 drivers/fpga/dfl.h | 5 -----
 1 file changed, 5 deletions(-)
drivers/fpga/dfl.h +0 -5
index 1d724a28f00a..5063d73b0d82 100644
@@ -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)
 {
Signature · 1 line
2.44.0