summaryrefslogtreecommitdiffstats
path: root/include/linux/gpio
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-07-24 16:57:28 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-08-14 15:01:13 +0200
commite3b445d77819b8fb41e3ceae9dbd49c8c8427c5d (patch)
treec60fc58771c5b554cefc6197cfc1c3e474585961 /include/linux/gpio
parent486707b7372be5978973993dc751ebe0db158343 (diff)
downloadlinux-stable-e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d.tar.gz
linux-stable-e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d.tar.bz2
linux-stable-e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d.zip
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')
-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: