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.

pinctrl: add stubs for OF-specific pinconf functions

Allow building drivers using these interfaces with COMPILE_TEST enabled
and OF disabled by providing stub definitions.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202505072245.OgSXI1hh-lkp@intel.com/
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://lore.kernel.org/20250507143551.47056-1-brgl@bgdev.pl
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Bartosz Golaszewski and committed by
Linus Walleij
3b38cce8 32b5361a

+17
+17
drivers/pinctrl/pinconf.h
··· 142 142 int pinconf_generic_parse_dt_pinmux(struct device_node *np, struct device *dev, 143 143 unsigned int **pid, unsigned int **pmux, 144 144 unsigned int *npins); 145 + #else 146 + static inline int 147 + pinconf_generic_parse_dt_config(struct device_node *np, 148 + struct pinctrl_dev *pctldev, 149 + unsigned long **configs, 150 + unsigned int *nconfigs) 151 + { 152 + return -ENOTSUPP; 153 + } 154 + 155 + static inline int 156 + pinconf_generic_parse_dt_pinmux(struct device_node *np, struct device *dev, 157 + unsigned int **pid, unsigned int **pmux, 158 + unsigned int *npins) 159 + { 160 + return -ENOTSUPP; 161 + } 145 162 #endif