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

Showing the changes to include/linux (1 of 1 file). Show all

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
5151 return ERR_PTR(-ENOTSUPP);
5252 }
5353
54−static struct regmap *syscon_regmap_lookup_by_phandle_args(
54+static inline struct regmap *syscon_regmap_lookup_by_phandle_args(
5555 struct device_node *np,
5656 const char *property,
5757 int arg_count,