Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ef8c8c5 authored by Michael Hennerich's avatar Michael Hennerich Committed by Linus Torvalds
Browse files

gpio: adp5588-gpio: gpio_start must be signed



Common code interprets this as a signed value (a negative value is used to
request dynamic ID allocation), so make sure the platform data has proper
types to support that.

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 459773ae
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ struct adp5588_kpad_platform_data {
};

struct adp5588_gpio_platform_data {
	unsigned gpio_start;		/* GPIO Chip base # */
	int gpio_start;		/* GPIO Chip base # */
	unsigned irq_base;	/* interrupt base # */
	unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
	int	(*setup)(struct i2c_client *client,