From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: [PATCH 7/7] gpio: Use unsigned int for of_gpio_n_cells Date: Mon, 24 Jul 2017 16:57:28 +0200 Message-ID: <20170724145728.7662-7-thierry.reding@gmail.com> References: <20170724145728.7662-1-thierry.reding@gmail.com> Return-path: In-Reply-To: <20170724145728.7662-1-thierry.reding@gmail.com> Sender: linux-acpi-owner@vger.kernel.org To: Linus Walleij Cc: Mika Westerberg , Andy Shevchenko , Jonathan Corbet , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-gpio@vger.kernel.org From: Thierry Reding The cell count for GPIO specifiers can never be negative, so make the field unsigned. Signed-off-by: Thierry Reding --- include/linux/gpio/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.13.3