Commit 7f38c5b9 authored by Sebastian Reichel's avatar Sebastian Reichel Committed by Linus Walleij

pinctrl: mcp23s08: fix comment for mcp23s08_platform_data.base

The comment does not match the driver, which actually supports
automatic assignment. Fix this by updating the comment.
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d8f4494e
...@@ -7,11 +7,11 @@ struct mcp23s08_platform_data { ...@@ -7,11 +7,11 @@ struct mcp23s08_platform_data {
*/ */
u32 spi_present_mask; u32 spi_present_mask;
/* "base" is the number of the first GPIO. Dynamic assignment is /* "base" is the number of the first GPIO or -1 for dynamic
* not currently supported, and even if there are gaps in chip * assignment. If there are gaps in chip addressing the GPIO
* addressing the GPIO numbers are sequential .. so for example * numbers are sequential .. so for example if only slaves 0
* if only slaves 0 and 3 are present, their GPIOs range from * and 3 are present, their GPIOs range from base to base+15
* base to base+15 (or base+31 for s17 variant). * (or base+31 for s17 variant).
*/ */
unsigned base; unsigned base;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment