Skip to content

Commit

Permalink
gpio: mockup: change the type of 'offset' to unsigned int
Browse files Browse the repository at this point in the history
This field can never be negative.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
  • Loading branch information
Bartosz Golaszewski committed Feb 19, 2019
1 parent d51ee07 commit 8333666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-mockup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 8333666

Please sign in to comment.