summaryrefslogtreecommitdiff
path: root/include/linux/gpio/driver.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-07-24 17:57:28 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-08-14 16:01:13 +0300
commite3b445d77819b8fb41e3ceae9dbd49c8c8427c5d (patch)
treec60fc58771c5b554cefc6197cfc1c3e474585961 /include/linux/gpio/driver.h
parent486707b7372be5978973993dc751ebe0db158343 (diff)
downloadlinux-e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d.tar.xz
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 <treding@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio/driver.h')
-rw-r--r--include/linux/gpio/driver.h2
1 files changed, 1 insertions, 1 deletions
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: