Skip to content

Commit 3b38cce

Browse files
Bartosz Golaszewskilinusw
authored andcommitted
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 32b5361 commit 3b38cce

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

drivers/pinctrl/pinconf.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,21 @@ int pinconf_generic_parse_dt_config(struct device_node *np,
142142
int pinconf_generic_parse_dt_pinmux(struct device_node *np, struct device *dev,
143143
unsigned int **pid, unsigned int **pmux,
144144
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+
}
145162
#endif

0 commit comments

Comments
 (0)