]> git.baikalelectronics.ru Git - kernel.git/commitdiff
gpio: mockup: change the type of 'offset' to unsigned int
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 18 Jan 2019 17:08:59 +0000 (18:08 +0100)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 19 Feb 2019 16:42:28 +0000 (17:42 +0100)
This field can never be negative.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mockup.c

index 0317917a36783af4febc01cb85d04787143afa55..433adb3b46179bb82e6670fd560ff184d539dc52 100644 (file)
@@ -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];