diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-01-18 18:08:59 +0100 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2019-02-19 17:42:28 +0100 |
commit | 83336668b94eb44ecd78a0b7840e43f0859e05cb (patch) | |
tree | 8636a51de35105ed86c1df7f8455f21431c62d5d /drivers/gpio | |
parent | d51ee07a8de7d6d3f7738a5e74861133fd2d46a0 (diff) | |
download | linux-stable-83336668b94eb44ecd78a0b7840e43f0859e05cb.tar.gz linux-stable-83336668b94eb44ecd78a0b7840e43f0859e05cb.tar.bz2 linux-stable-83336668b94eb44ecd78a0b7840e43f0859e05cb.zip |
gpio: mockup: change the type of 'offset' to unsigned int
This field can never be negative.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mockup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c index 0317917a3678..433adb3b4617 100644 --- a/drivers/gpio/gpio-mockup.c +++ b/drivers/gpio/gpio-mockup.c @@ -60,7 +60,7 @@ struct gpio_mockup_chip { struct gpio_mockup_dbgfs_private { struct gpio_mockup_chip *chip; struct gpio_desc *desc; - int offset; + unsigned int offset; }; static int gpio_mockup_ranges[GPIO_MOCKUP_MAX_RANGES]; |