From: Thierry Reding Date: Mon, 24 Jul 2017 14:57:28 +0000 (+0200) Subject: gpio: Use unsigned int for of_gpio_n_cells X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d;p=linux.git gpio: Use unsigned int for of_gpio_n_cells The cell count for GPIO specifiers can never be negative, so make the field unsigned. Signed-off-by: Thierry Reding Signed-off-by: Linus Walleij --- diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index fe66c9306caf0..c97f8325e8bf5 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -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: