From: Bartosz Golaszewski Date: Fri, 18 Jan 2019 17:08:59 +0000 (+0100) Subject: gpio: mockup: change the type of 'offset' to unsigned int X-Git-Tag: v5.1-rc1~102^2~24^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=83336668b94eb44ecd78a0b7840e43f0859e05cb;p=linux.git gpio: mockup: change the type of 'offset' to unsigned int This field can never be negative. Signed-off-by: Bartosz Golaszewski --- 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];