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: https://git.stricted.de/?a=commitdiff_plain;h=e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 fe66c9306caf..c97f8325e8bf 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: