aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-08-08 01:20:59 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-08-14 16:49:23 -0400
commit2868a07446e435fa74a6543da857a494d2930a99 (patch)
treec3cf9a960eb2bfc90d35554a7907d445d36b4c85
parent62783b714f21a08b20acfaab1c13679e887ab66c (diff)
Documentation: pinctrl: Fix example code
__initdata should be placed between the variable name and equal sign for the variable to be placed in the intended section. Fix the examples. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/pinctrl.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index d2d7fc05a8fd..e7bee9bab032 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -935,7 +935,7 @@ static unsigned long uart_sleep_mode[] = {
935 PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0), 935 PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0),
936}; 936};
937 937
938static struct pinctrl_map __initdata pinmap[] = { 938static struct pinctrl_map pinmap[] __initdata = {
939 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 939 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
940 "u0_group", "u0"), 940 "u0_group", "u0"),
941 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 941 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
@@ -1030,7 +1030,7 @@ Since the above construct is pretty common there is a helper macro to make
1030it even more compact which assumes you want to use pinctrl-foo and position 1030it even more compact which assumes you want to use pinctrl-foo and position
10310 for mapping, for example: 10310 for mapping, for example:
1032 1032
1033static struct pinctrl_map __initdata mapping[] = { 1033static struct pinctrl_map mapping[] __initdata = {
1034 PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT, "pinctrl-foo", NULL, "i2c0"), 1034 PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT, "pinctrl-foo", NULL, "i2c0"),
1035}; 1035};
1036 1036
@@ -1049,7 +1049,7 @@ static unsigned long i2c_pin_configs[] = {
1049 FOO_SLEW_RATE_SLOW, 1049 FOO_SLEW_RATE_SLOW,
1050}; 1050};
1051 1051
1052static struct pinctrl_map __initdata mapping[] = { 1052static struct pinctrl_map mapping[] __initdata = {
1053 PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", "i2c0"), 1053 PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", "i2c0"),
1054 PIN_MAP_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs), 1054 PIN_MAP_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs),
1055 PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs), 1055 PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs),
@@ -1063,7 +1063,7 @@ order to explicitly indicate that the states were provided and intended to
1063be empty. Table entry macro PIN_MAP_DUMMY_STATE serves the purpose of defining 1063be empty. Table entry macro PIN_MAP_DUMMY_STATE serves the purpose of defining
1064a named state without causing any pin controller to be programmed: 1064a named state without causing any pin controller to be programmed:
1065 1065
1066static struct pinctrl_map __initdata mapping[] = { 1066static struct pinctrl_map mapping[] __initdata = {
1067 PIN_MAP_DUMMY_STATE("foo-i2c.0", PINCTRL_STATE_DEFAULT), 1067 PIN_MAP_DUMMY_STATE("foo-i2c.0", PINCTRL_STATE_DEFAULT),
1068}; 1068};
1069 1069