Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Signed-off-by: Peter Colberg <peter.colberg@intel.com>
Reviewed-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240415235743.3045-1-peter.colberg@intel.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>

authored by

Peter Colberg and committed by
Xu Yilun
7c2dafa6 1eb3816c

-5
-5
drivers/fpga/dfl.h
··· 437 437 return NULL; 438 438 } 439 439 440 - static inline bool is_dfl_feature_present(struct device *dev, u16 id) 441 - { 442 - return !!dfl_get_feature_ioaddr_by_id(dev, id); 443 - } 444 - 445 440 static inline 446 441 struct device *dfl_fpga_pdata_to_parent(struct dfl_feature_platform_data *pdata) 447 442 {