[PATCH] docs/pinctrl: fix typo in mapping example

marc.ferland@gmail.com posted 1 patch 1 year, 7 months ago
Documentation/driver-api/pin-control.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] docs/pinctrl: fix typo in mapping example
Posted by marc.ferland@gmail.com 1 year, 7 months ago
From: Marc Ferland <marc.ferland@sonatest.com>

Small typo. The device name in the example should be "foo-i2c.0" and
not "foo-i2c.o".

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
---
 Documentation/driver-api/pin-control.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
index 4639912dc9cc..27ea1236307e 100644
--- a/Documentation/driver-api/pin-control.rst
+++ b/Documentation/driver-api/pin-control.rst
@@ -1002,7 +1002,7 @@ it even more compact which assumes you want to use pinctrl-foo and position
 .. code-block:: c
 
 	static struct pinctrl_map mapping[] __initdata = {
-		PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT,
+		PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT,
 				  "pinctrl-foo", NULL, "i2c0"),
 	};
 
-- 
2.34.1
Re: [PATCH] docs/pinctrl: fix typo in mapping example
Posted by Jonathan Corbet 1 year, 6 months ago
marc.ferland@gmail.com writes:

> From: Marc Ferland <marc.ferland@sonatest.com>
>
> Small typo. The device name in the example should be "foo-i2c.0" and
> not "foo-i2c.o".
>
> Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
> ---
>  Documentation/driver-api/pin-control.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Documentation/driver-api/pin-control.rst b/Documentation/driver-api/pin-control.rst
> index 4639912dc9cc..27ea1236307e 100644
> --- a/Documentation/driver-api/pin-control.rst
> +++ b/Documentation/driver-api/pin-control.rst
> @@ -1002,7 +1002,7 @@ it even more compact which assumes you want to use pinctrl-foo and position
>  .. code-block:: c
>  
>  	static struct pinctrl_map mapping[] __initdata = {
> -		PIN_MAP_MUX_GROUP("foo-i2c.o", PINCTRL_STATE_DEFAULT,
> +		PIN_MAP_MUX_GROUP("foo-i2c.0", PINCTRL_STATE_DEFAULT,
>  				  "pinctrl-foo", NULL, "i2c0"),

Applied, thanks.

jon