Documentation: Fix minor typos in pinctrl.txt
PATCH 1/1 Documentation: Fix minor typos in pinctrl.txt
Fix some minor typos in the pinctrl documentation.
--- Documentation/pinctrl.txt | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)
Documentation/pinctrl.txt +8 -8
@@ -91,7 +91,7 @@ int __init foo_probe(void) Pins usually have fancier names than this. You can find these in the dataheet for your chip. Notice that the core pinctrl.h file provides a fancy macro called PINCTRL_PIN() to create the struct entries. As you can see I enumerated -the pins from 0 in the upper left corner to 63 in the lower right corner, +the pins from 0 in the lower left corner to 63 in the upper right corner, this enumeration was arbitrarily chosen, in practice you need to think through your numbering system so that it matches the layout of registers and such things in your driver, or the code may become complicated. You must
@@ -218,7 +218,7 @@ static struct pinctrl_gpio_range gpio_range_a = { .gc = &chip_a; }; -static struct pinctrl_gpio_range gpio_range_a = { +static struct pinctrl_gpio_range gpio_range_b = { .name = "chip b", .id = 0, .base = 48,
@@ -762,42 +762,42 @@ case), we define a mapping like this: .name "2bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_0_grp", + .group = "mmc0_1_grp", .dev_name = "foo-mmc.0", }, { .name "4bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_0_grp", + .group = "mmc0_1_grp", .dev_name = "foo-mmc.0", }, { .name "4bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_1_grp", + .group = "mmc0_2_grp", .dev_name = "foo-mmc.0", }, { .name "8bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_0_grp", + .group = "mmc0_1_grp", .dev_name = "foo-mmc.0", }, { .name "8bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_1_grp", + .group = "mmc0_2_grp", .dev_name = "foo-mmc.0", }, { .name "8bit" .ctrl_dev_name = "pinctrl.0", .function = "mmc0", - .group = "mmc0_2_grp", + .group = "mmc0_3_grp", .dev_name = "foo-mmc.0", }, ...
Signature · 1 line
1.7.1
Documentation/pinctrl.txt int __init foo_probe(void) · line 91
Quoted 13 lines · Rajendra Nayak
Fix some minor typos in the pinctrl documentation.
Signed-off-by Rajendra Nayak <[email protected]>--- Documentation/pinctrl.txt | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-)Documentation/pinctrl.txt +0
-0@@ -91,7 +91,7 @@ int __init foo_probe(void) Pins usually have fancier names than this. You can find these in the dataheet
fix typo: datasheet
Documentation/pinctrl.txt int __init foo_probe(void) · line 94
Quoted 4 lines
Documentation/pinctrl.txt +1
-1for your chip. Notice that the core pinctrl.h file provides a fancy macro called PINCTRL_PIN() to create the struct entries. As you can see I enumerated -the pins from 0 in the upper left corner to 63 in the lower right corner, +the pins from 0 in the lower left corner to 63 in the upper right corner,
fix run-on sentences:
the pins from 0 in the lower left corner to 63 in the upper right corner. This enumeration was arbitrarily chosen; in practice you need to think
Quoted 3 lines
Documentation/pinctrl.txt +0
-0this enumeration was arbitrarily chosen, in practice you need to think through your numbering system so that it matches the layout of registers and such things in your driver, or the code may become complicated. You must
Signature · 2 lines
~Randy *** Remember to use Documentation/SubmitChecklist when testing your code ***
Quoted 1 line · Rajendra Nayak
Fix some minor typos in the pinctrl documentation.
(...)
Documentation/pinctrl.txt int __init foo_probe(void) · line 94
Quoted 2 lines
Documentation/pinctrl.txt +1
-1-the pins from 0 in the upper left corner to 63 in the lower right corner, +the pins from 0 in the lower left corner to 63 in the upper right corner,
It's the PINCTRL_PIN() defintions that are wrong, this text is correct.
So it should be:
const struct pinctrl_pin_desc foo_pins[] = {
PINCTRL_PIN(0, "A8"),
PINCTRL_PIN(1, "B8"),
PINCTRL_PIN(2, "C8"),
...
PINCTRL_PIN(61, "F1"),
PINCTRL_PIN(62, "G1"),
PINCTRL_PIN(63, "H1"),
};Fixed this, will send another patch.
Documentation/pinctrl.txt static struct pinctrl_gpio_range gpio_range_a = { · line 221
Quoted 2 lines
Documentation/pinctrl.txt +1
-1-static struct pinctrl_gpio_range gpio_range_a = { +static struct pinctrl_gpio_range gpio_range_b = {
OK fixed this.
Quoted 43 lines
.name = "chip b",
.id = 0,
.base = 48,(quoted diff) +0
-0@@ -762,42 +762,42 @@ case), we define a mapping like this:.name "2bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_0_grp",
+ .group = "mmc0_1_grp",
.dev_name = "foo-mmc.0",
},
{
.name "4bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_0_grp",
+ .group = "mmc0_1_grp",
.dev_name = "foo-mmc.0",
},
{
.name "4bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_1_grp",
+ .group = "mmc0_2_grp",
.dev_name = "foo-mmc.0",
},
{
.name "8bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_0_grp",
+ .group = "mmc0_1_grp",
.dev_name = "foo-mmc.0",
},
{
.name "8bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_1_grp",
+ .group = "mmc0_2_grp",
.dev_name = "foo-mmc.0",
},
Quoted 8 lines
{
.name "8bit"
.ctrl_dev_name = "pinctrl.0",
.function = "mmc0",
- .group = "mmc0_2_grp",
+ .group = "mmc0_3_grp",
.dev_name = "foo-mmc.0",
},
OK fixed this...
I'll submit a separate patch with your
Reported-by: and Randy's fixes folded in.
Thanks,
Linus Walleij