0001
0002
0003
0004
0005
0006
0007
0008 struct of_phandle_args;
0009
0010 #ifdef CONFIG_OF
0011
0012 void pinctrl_dt_free_maps(struct pinctrl *p);
0013 int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev);
0014
0015 int pinctrl_count_index_with_args(const struct device_node *np,
0016 const char *list_name);
0017
0018 int pinctrl_parse_index_with_args(const struct device_node *np,
0019 const char *list_name, int index,
0020 struct of_phandle_args *out_args);
0021
0022 #else
0023
0024 static inline int pinctrl_dt_to_map(struct pinctrl *p,
0025 struct pinctrl_dev *pctldev)
0026 {
0027 return 0;
0028 }
0029
0030 static inline void pinctrl_dt_free_maps(struct pinctrl *p)
0031 {
0032 }
0033
0034 static inline int pinctrl_count_index_with_args(const struct device_node *np,
0035 const char *list_name)
0036 {
0037 return -ENODEV;
0038 }
0039
0040 static inline int
0041 pinctrl_parse_index_with_args(const struct device_node *np,
0042 const char *list_name, int index,
0043 struct of_phandle_args *out_args)
0044 {
0045 return -ENODEV;
0046 }
0047
0048 #endif