diff options
Diffstat (limited to 'include/linux/pinctrl/machine.h')
-rw-r--r-- | include/linux/pinctrl/machine.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h index f8593fdc6466..a2ab524a0106 100644 --- a/include/linux/pinctrl/machine.h +++ b/include/linux/pinctrl/machine.h | |||
@@ -9,11 +9,11 @@ | |||
9 | * | 9 | * |
10 | * License terms: GNU General Public License (GPL) version 2 | 10 | * License terms: GNU General Public License (GPL) version 2 |
11 | */ | 11 | */ |
12 | #ifndef __LINUX_PINMUX_MACHINE_H | 12 | #ifndef __LINUX_PINCTRL_MACHINE_H |
13 | #define __LINUX_PINMUX_MACHINE_H | 13 | #define __LINUX_PINCTRL_MACHINE_H |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * struct pinmux_map - boards/machines shall provide this map for devices | 16 | * struct pinctrl_map - boards/machines shall provide this map for devices |
17 | * @name: the name of this specific map entry for the particular machine. | 17 | * @name: the name of this specific map entry for the particular machine. |
18 | * This is the second parameter passed to pinmux_get() when you want | 18 | * This is the second parameter passed to pinmux_get() when you want |
19 | * to have several mappings to the same device | 19 | * to have several mappings to the same device |
@@ -34,7 +34,7 @@ | |||
34 | * a pinmux device supporting it is registered. These maps will not be | 34 | * a pinmux device supporting it is registered. These maps will not be |
35 | * disabled and put until the system shuts down. | 35 | * disabled and put until the system shuts down. |
36 | */ | 36 | */ |
37 | struct pinmux_map { | 37 | struct pinctrl_map { |
38 | const char *name; | 38 | const char *name; |
39 | const char *ctrl_dev_name; | 39 | const char *ctrl_dev_name; |
40 | const char *function; | 40 | const char *function; |
@@ -47,41 +47,41 @@ struct pinmux_map { | |||
47 | * Convenience macro to set a simple map from a certain pin controller and a | 47 | * Convenience macro to set a simple map from a certain pin controller and a |
48 | * certain function to a named device | 48 | * certain function to a named device |
49 | */ | 49 | */ |
50 | #define PINMUX_MAP(a, b, c, d) \ | 50 | #define PIN_MAP(a, b, c, d) \ |
51 | { .name = a, .ctrl_dev_name = b, .function = c, .dev_name = d } | 51 | { .name = a, .ctrl_dev_name = b, .function = c, .dev_name = d } |
52 | 52 | ||
53 | /* | 53 | /* |
54 | * Convenience macro to map a system function onto a certain pinctrl device. | 54 | * Convenience macro to map a system function onto a certain pinctrl device. |
55 | * System functions are not assigned to a particular device. | 55 | * System functions are not assigned to a particular device. |
56 | */ | 56 | */ |
57 | #define PINMUX_MAP_SYS(a, b, c) \ | 57 | #define PIN_MAP_SYS(a, b, c) \ |
58 | { .name = a, .ctrl_dev_name = b, .function = c } | 58 | { .name = a, .ctrl_dev_name = b, .function = c } |
59 | 59 | ||
60 | /* | 60 | /* |
61 | * Convenience macro to map a system function onto a certain pinctrl device, | 61 | * Convenience macro to map a system function onto a certain pinctrl device, |
62 | * to be hogged by the pinmux core until the system shuts down. | 62 | * to be hogged by the pin control core until the system shuts down. |
63 | */ | 63 | */ |
64 | #define PINMUX_MAP_SYS_HOG(a, b, c) \ | 64 | #define PIN_MAP_SYS_HOG(a, b, c) \ |
65 | { .name = a, .ctrl_dev_name = b, .function = c, \ | 65 | { .name = a, .ctrl_dev_name = b, .function = c, \ |
66 | .hog_on_boot = true } | 66 | .hog_on_boot = true } |
67 | 67 | ||
68 | /* | 68 | /* |
69 | * Convenience macro to map a system function onto a certain pinctrl device | 69 | * Convenience macro to map a system function onto a certain pinctrl device |
70 | * using a specified group, to be hogged by the pinmux core until the system | 70 | * using a specified group, to be hogged by the pin control core until the |
71 | * shuts down. | 71 | * system shuts down. |
72 | */ | 72 | */ |
73 | #define PINMUX_MAP_SYS_HOG_GROUP(a, b, c, d) \ | 73 | #define PIN_MAP_SYS_HOG_GROUP(a, b, c, d) \ |
74 | { .name = a, .ctrl_dev_name = b, .function = c, .group = d, \ | 74 | { .name = a, .ctrl_dev_name = b, .function = c, .group = d, \ |
75 | .hog_on_boot = true } | 75 | .hog_on_boot = true } |
76 | 76 | ||
77 | #ifdef CONFIG_PINMUX | 77 | #ifdef CONFIG_PINMUX |
78 | 78 | ||
79 | extern int pinmux_register_mappings(struct pinmux_map const *map, | 79 | extern int pinctrl_register_mappings(struct pinctrl_map const *map, |
80 | unsigned num_maps); | 80 | unsigned num_maps); |
81 | 81 | ||
82 | #else | 82 | #else |
83 | 83 | ||
84 | static inline int pinmux_register_mappings(struct pinmux_map const *map, | 84 | static inline int pinctrl_register_mappings(struct pinctrl_map const *map, |
85 | unsigned num_maps) | 85 | unsigned num_maps) |
86 | { | 86 | { |
87 | return 0; | 87 | return 0; |