gpio: Use unsigned int for of_gpio_n_cells
authorThierry Reding <treding@nvidia.com>
Mon, 24 Jul 2017 14:57:28 +0000 (16:57 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:13 +0000 (15:01 +0200)
The cell count for GPIO specifiers can never be negative, so make the
field unsigned.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/driver.h

index fe66c9306caf0b6cf91d04a3ff6c1428a77e4e87..c97f8325e8bf5c2f4d309b1e8e82b69d62e68bfc 100644 (file)
@@ -193,7 +193,7 @@ struct gpio_chip {
         *
         * Number of cells used to form the GPIO specifier.
         */
-       int of_gpio_n_cells;
+       unsigned int of_gpio_n_cells;
 
        /**
         * @of_xlate: