diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-02-22 16:25:58 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-02-24 00:24:52 -0500 |
commit | 1681f5ae4ca25bddb6f7b6d4f463cc83e3d1ad01 (patch) | |
tree | fc37580130beadbc5e0898ddb9b5fec32b662859 /include/linux/pinctrl | |
parent | f7b9006f4598dd252dca5225f3cf88179c36276f (diff) |
pinctrl: disallow map table entries with NULL dev_name field
Hog entries are mapping table entries with .ctrl_dev_name == .dev_name.
All other mapping table entries need .dev_name set so that they will
match some pinctrl_get() call. All extant PIN_MAP*() macros set
.dev_name.
So, there is no reason to allow mapping table entries without .dev_name
set. Update the code and documentation to disallow this.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
-rw-r--r-- | include/linux/pinctrl/machine.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/pinctrl/machine.h b/include/linux/pinctrl/machine.h index af145d571970..400f1926b234 100644 --- a/include/linux/pinctrl/machine.h +++ b/include/linux/pinctrl/machine.h | |||
@@ -46,13 +46,6 @@ struct pinctrl_map { | |||
46 | { .name = a, .ctrl_dev_name = b, .function = c, .dev_name = d } | 46 | { .name = a, .ctrl_dev_name = b, .function = c, .dev_name = d } |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * Convenience macro to map a system function onto a certain pinctrl device. | ||
50 | * System functions are not assigned to a particular device. | ||
51 | */ | ||
52 | #define PIN_MAP_SYS(a, b, c) \ | ||
53 | { .name = a, .ctrl_dev_name = b, .function = c } | ||
54 | |||
55 | /* | ||
56 | * Convenience macro to map a system function onto a certain pinctrl device, | 49 | * Convenience macro to map a system function onto a certain pinctrl device, |
57 | * to be hogged by the pin control core until the system shuts down. | 50 | * to be hogged by the pin control core until the system shuts down. |
58 | */ | 51 | */ |