Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Sebastian Reichel and committed by
Linus Walleij
7f38c5b9 d8f4494e

+5 -5
+5 -5
include/linux/spi/mcp23s08.h
··· 7 7 */ 8 8 u32 spi_present_mask; 9 9 10 - /* "base" is the number of the first GPIO. Dynamic assignment is 11 - * not currently supported, and even if there are gaps in chip 12 - * addressing the GPIO numbers are sequential .. so for example 13 - * if only slaves 0 and 3 are present, their GPIOs range from 14 - * base to base+15 (or base+31 for s17 variant). 10 + /* "base" is the number of the first GPIO or -1 for dynamic 11 + * assignment. If there are gaps in chip addressing the GPIO 12 + * numbers are sequential .. so for example if only slaves 0 13 + * and 3 are present, their GPIOs range from base to base+15 14 + * (or base+31 for s17 variant). 15 15 */ 16 16 unsigned base; 17 17 };