History

mfd: syscon: Fix syscon_regmap_lookup_by_phandle_args() dummy

If CONFIG_MFD_SYSCON=n: include/linux/mfd/syscon.h:54:23: warning: ‘syscon_regmap_lookup_by_phandle_args’ defined but not used [-Wunused-function] Fix this by adding the missing inline keyword.

Geert Uytterhoeven committed 6 years ago

Commit 5312f321 parent 6ac7e4d1 file · +1 −1Browse files

Unified · Split

include/linux/mfd/syscon.h+1−1
@@ -51,7 +51,7 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle( · 50 unmodified lines
51 return ERR_PTR(-ENOTSUPP);51 return ERR_PTR(-ENOTSUPP);
52}52}
53 53
54static struct regmap *syscon_regmap_lookup_by_phandle_args(54static inline struct regmap *syscon_regmap_lookup_by_phandle_args(
55 struct device_node *np,55 struct device_node *np,
56 const char *property,56 const char *property,
57 int arg_count,57 int arg_count,