|
@@ -137,12 +137,21 @@ static inline unsigned long pinconf_to_config_packed(enum pin_config_param param
|
|
|
return PIN_CONF_PACKED(param, argument);
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_OF
|
|
|
+
|
|
|
+#include <linux/device.h>
|
|
|
+struct pinctrl_dev;
|
|
|
+struct pinctrl_map;
|
|
|
+
|
|
|
int pinconf_generic_dt_subnode_to_map(struct pinctrl_dev *pctldev,
|
|
|
struct device_node *np, struct pinctrl_map **map,
|
|
|
unsigned *reserved_maps, unsigned *num_maps);
|
|
|
int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev,
|
|
|
struct device_node *np_config, struct pinctrl_map **map,
|
|
|
unsigned *num_maps);
|
|
|
+
|
|
|
+#endif
|
|
|
+
|
|
|
#endif /* CONFIG_GENERIC_PINCONF */
|
|
|
|
|
|
#endif /* __LINUX_PINCTRL_PINCONF_GENERIC_H */
|