1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #ifndef __PINCTRL_UTILS_H__
23 #define __PINCTRL_UTILS_H__
24
25 int pinctrl_utils_reserve_map(struct pinctrl_dev *pctldev,
26 struct pinctrl_map **map, unsigned *reserved_maps,
27 unsigned *num_maps, unsigned reserve);
28 int pinctrl_utils_add_map_mux(struct pinctrl_dev *pctldev,
29 struct pinctrl_map **map, unsigned *reserved_maps,
30 unsigned *num_maps, const char *group,
31 const char *function);
32 int pinctrl_utils_add_map_configs(struct pinctrl_dev *pctldev,
33 struct pinctrl_map **map, unsigned *reserved_maps,
34 unsigned *num_maps, const char *group,
35 unsigned long *configs, unsigned num_configs,
36 enum pinctrl_map_type type);
37 int pinctrl_utils_add_config(struct pinctrl_dev *pctldev,
38 unsigned long **configs, unsigned *num_configs,
39 unsigned long config);
40 void pinctrl_utils_free_map(struct pinctrl_dev *pctldev,
41 struct pinctrl_map *map, unsigned num_maps);
42
43 #endif