diff options
author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-05-07 17:35:51 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-05-13 16:05:45 +0300 |
commit | 3b38cce83fa97348e7a926dd90304c18b9659308 (patch) | |
tree | 2b405ec89c155d50b40eca2aebaae3e97999a317 | |
parent | 32b5361a0d10627343b2ded76f05e5d591627fd6 (diff) | |
download | linux-3b38cce83fa97348e7a926dd90304c18b9659308.tar.xz |
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>
-rw-r--r-- | drivers/pinctrl/pinconf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinconf.h b/drivers/pinctrl/pinconf.h index a171195b3615..e1ae71610526 100644 --- a/drivers/pinctrl/pinconf.h +++ b/drivers/pinctrl/pinconf.h @@ -142,4 +142,21 @@ int pinconf_generic_parse_dt_config(struct device_node *np, int pinconf_generic_parse_dt_pinmux(struct device_node *np, struct device *dev, unsigned int **pid, unsigned int **pmux, unsigned int *npins); +#else +static inline int +pinconf_generic_parse_dt_config(struct device_node *np, + struct pinctrl_dev *pctldev, + unsigned long **configs, + unsigned int *nconfigs) +{ + return -ENOTSUPP; +} + +static inline int +pinconf_generic_parse_dt_pinmux(struct device_node *np, struct device *dev, + unsigned int **pid, unsigned int **pmux, + unsigned int *npins) +{ + return -ENOTSUPP; +} #endif |