diff options
author | Thierry Reding <treding@nvidia.com> | 2017-07-24 10:57:28 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2017-08-14 09:01:13 -0400 |
commit | e3b445d77819b8fb41e3ceae9dbd49c8c8427c5d (patch) | |
tree | c60fc58771c5b554cefc6197cfc1c3e474585961 /include/linux/gpio/driver.h | |
parent | 486707b7372be5978973993dc751ebe0db158343 (diff) |
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.h | 2 |
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 { | |||
193 | * | 193 | * |
194 | * Number of cells used to form the GPIO specifier. | 194 | * Number of cells used to form the GPIO specifier. |
195 | */ | 195 | */ |
196 | int of_gpio_n_cells; | 196 | unsigned int of_gpio_n_cells; |
197 | 197 | ||
198 | /** | 198 | /** |
199 | * @of_xlate: | 199 | * @of_xlate: |