1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19struct of_phandle_args;
20
21#ifdef CONFIG_OF
22
23bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev);
24
25void pinctrl_dt_free_maps(struct pinctrl *p);
26int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev);
27
28int pinctrl_count_index_with_args(const struct device_node *np,
29 const char *list_name);
30
31int pinctrl_parse_index_with_args(const struct device_node *np,
32 const char *list_name, int index,
33 struct of_phandle_args *out_args);
34
35#else
36
37static inline bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev)
38{
39 return false;
40}
41
42static inline int pinctrl_dt_to_map(struct pinctrl *p,
43 struct pinctrl_dev *pctldev)
44{
45 return 0;
46}
47
48static inline void pinctrl_dt_free_maps(struct pinctrl *p)
49{
50}
51
52static inline int pinctrl_count_index_with_args(const struct device_node *np,
53 const char *list_name)
54{
55 return -ENODEV;
56}
57
58static inline int
59pinctrl_parse_index_with_args(const struct device_node *np,
60 const char *list_name, int index,
61 struct of_phandle_args *out_args)
62{
63 return -ENODEV;
64}
65
66#endif
67