Skip to content

Commit 5312f32

Browse files
geertuLee Jones
authored andcommitted
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. Fixes: 6a24f56 ("mfd: syscon: Add arguments support for syscon reference") Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent 6ac7e4d commit 5312f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/mfd/syscon.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle(
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,

0 commit comments

Comments
 (0)