fpga: dfl: remove unused function is_dfl_feature_present
Subsystems (2)
PATCH 1/1 fpga: dfl: remove unused function is_dfl_feature_present
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 <[email protected]>
Reviewed-by Matthew Gerlach <[email protected]>
--- drivers/fpga/dfl.h | 5 ----- 1 file changed, 5 deletions(-)
drivers/fpga/dfl.h +0 -5
@@ -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
Quoted 2 lines · Peter Colberg
The function
is_dfl_feature_presentwas added in commit5b57d02a2f94("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
Quoted 27 lines
Signed-off-by Peter Colberg <[email protected]>Reviewed-by Matthew Gerlach <[email protected]>--- drivers/fpga/dfl.h | 5 ----- 1 file changed, 5 deletions(-)drivers/fpga/dfl.h +0
-5@@ -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