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

Configure Feed

Select the types of activity you want to include in your feed.

driver core: make pinctrl_bind_pins() private

pinctrl_bind_pins() is only used by driver core (as it should). Move it
out of the public header into base.h.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
eb9eb4db 43519f54

+11 -6
+9
drivers/base/base.h
··· 289 289 290 290 void software_node_notify(struct device *dev); 291 291 void software_node_notify_remove(struct device *dev); 292 + 293 + #ifdef CONFIG_PINCTRL 294 + int pinctrl_bind_pins(struct device *dev); 295 + #else 296 + static inline int pinctrl_bind_pins(struct device *dev) 297 + { 298 + return 0; 299 + } 300 + #endif /* CONFIG_PINCTRL */
+2
drivers/base/pinctrl.c
··· 14 14 #include <linux/pinctrl/consumer.h> 15 15 #include <linux/slab.h> 16 16 17 + #include "base.h" 18 + 17 19 /** 18 20 * pinctrl_bind_pins() - called by the device core before probe 19 21 * @dev: the device that is just about to probe
-6
include/linux/pinctrl/devinfo.h
··· 43 43 #endif 44 44 }; 45 45 46 - extern int pinctrl_bind_pins(struct device *dev); 47 46 extern int pinctrl_init_done(struct device *dev); 48 47 49 48 static inline struct pinctrl *dev_pinctrl(struct device *dev) ··· 56 57 #else 57 58 58 59 /* Stubs if we're not using pinctrl */ 59 - 60 - static inline int pinctrl_bind_pins(struct device *dev) 61 - { 62 - return 0; 63 - } 64 60 65 61 static inline int pinctrl_init_done(struct device *dev) 66 62 {