OSDN Git Service

pinctrl: mcp23s08: fix comment for mcp23s08_platform_data.base
authorSebastian Reichel <sebastian.reichel@collabora.co.uk>
Mon, 15 May 2017 09:24:38 +0000 (11:24 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 May 2017 07:51:33 +0000 (09:51 +0200)
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>
include/linux/spi/mcp23s08.h

index 4354bee..82d96a3 100644 (file)
@@ -7,11 +7,11 @@ struct mcp23s08_platform_data {
         */
        u32 spi_present_mask;
 
-       /* "base" is the number of the first GPIO.  Dynamic assignment is
-        * not currently supported, and even if there are gaps in chip
-        * addressing the GPIO numbers are sequential .. so for example
-        * if only slaves 0 and 3 are present, their GPIOs range from
-        * base to base+15 (or base+31 for s17 variant).
+       /* "base" is the number of the first GPIO or -1 for dynamic
+        * assignment. If there are gaps in chip addressing the GPIO
+        * numbers are sequential .. so for example if only slaves 0
+        * and 3 are present, their GPIOs range from base to base+15
+        * (or base+31 for s17 variant).
         */
        unsigned        base;
 };