aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-08-09 12:19:38 -0400
committerJiri Kosina <jkosina@suse.cz>2013-08-20 06:51:59 -0400
commitc96bd35036a7e20123984f20b546b4e4a19f3f51 (patch)
tree3f4d39b4376f37a8a315afaae79b267a4bbfad3d
parenteb967b6a332688a8d83e7782953cc1017da514ff (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> Acked-by: Rob Landley <rob@landley.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--Documentation/pinctrl.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt
index 052e13af2d38..e3f322a4b358 100644
--- a/Documentation/pinctrl.txt
+++ b/Documentation/pinctrl.txt
@@ -856,7 +856,7 @@ static unsigned long uart_sleep_mode[] = {
856 PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0), 856 PIN_CONF_PACKED(PIN_CONFIG_OUTPUT, 0),
857}; 857};
858 858
859static struct pinctrl_map __initdata pinmap[] = { 859static struct pinctrl_map pinmap[] __initdata = {
860 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 860 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
861 "u0_group", "u0"), 861 "u0_group", "u0"),
862 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 862 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
@@ -951,7 +951,7 @@ Since the above construct is pretty common there is a helper macro to make
951it even more compact which assumes you want to use pinctrl-foo and position 951it even more compact which assumes you want to use pinctrl-foo and position
9520 for mapping, for example: 9520 for mapping, for example:
953 953
954static struct pinctrl_map __initdata mapping[] = { 954static struct pinctrl_map mapping[] __initdata = {
955 PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT, "pinctrl-foo", NULL, "i2c0"), 955 PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT, "pinctrl-foo", NULL, "i2c0"),
956}; 956};
957 957
@@ -970,7 +970,7 @@ static unsigned long i2c_pin_configs[] = {
970 FOO_SLEW_RATE_SLOW, 970 FOO_SLEW_RATE_SLOW,
971}; 971};
972 972
973static struct pinctrl_map __initdata mapping[] = { 973static struct pinctrl_map mapping[] __initdata = {
974 PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", "i2c0"), 974 PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", "i2c0"),
975 PIN_MAP_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs), 975 PIN_MAP_CONFIGS_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0", i2c_grp_configs),
976 PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs), 976 PIN_MAP_CONFIGS_PIN("foo-i2c.0", PINCTRL_STATE_DEFAULT, "pinctrl-foo", "i2c0scl", i2c_pin_configs),
@@ -984,7 +984,7 @@ order to explicitly indicate that the states were provided and intended to
984be empty. Table entry macro PIN_MAP_DUMMY_STATE serves the purpose of defining 984be empty. Table entry macro PIN_MAP_DUMMY_STATE serves the purpose of defining
985a named state without causing any pin controller to be programmed: 985a named state without causing any pin controller to be programmed:
986 986
987static struct pinctrl_map __initdata mapping[] = { 987static struct pinctrl_map mapping[] __initdata = {
988 PIN_MAP_DUMMY_STATE("foo-i2c.0", PINCTRL_STATE_DEFAULT), 988 PIN_MAP_DUMMY_STATE("foo-i2c.0", PINCTRL_STATE_DEFAULT),
989}; 989};
990 990