]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: remove extern specifier for functions in machine.h
authorThomas Richard <thomas.richard@bootlin.com>
Tue, 20 May 2025 13:28:26 +0000 (15:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 21 May 2025 08:09:41 +0000 (10:09 +0200)
Extern is the default specifier for a function, no need to define it.

Suggested-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://lore.kernel.org/20250520-aaeon-up-board-pinctrl-support-v6-2-dcb3756be3c6@bootlin.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/machine.h

index 673e96df453b3bf3405d4dde93364694689974c4..0940fabb154daab0675646de1faae49b5f736383 100644 (file)
@@ -153,10 +153,10 @@ struct pinctrl_map;
 
 #ifdef CONFIG_PINCTRL
 
-extern int pinctrl_register_mappings(const struct pinctrl_map *map,
-                                    unsigned int num_maps);
-extern void pinctrl_unregister_mappings(const struct pinctrl_map *map);
-extern void pinctrl_provide_dummies(void);
+int pinctrl_register_mappings(const struct pinctrl_map *map,
+                             unsigned int num_maps);
+void pinctrl_unregister_mappings(const struct pinctrl_map *map);
+void pinctrl_provide_dummies(void);
 #else
 
 static inline int pinctrl_register_mappings(const struct pinctrl_map *map,