From: Michael Hennerich Date: Wed, 27 Oct 2010 22:33:20 +0000 (-0700) Subject: gpio: adp5588-gpio: gpio_start must be signed X-Git-Tag: v3.0~2990^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ef8c8c51a7d76bae73e0259c356b24533b6b7c0;p=platform%2Fkernel%2Flinux-amlogic.git 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: Michael Hennerich Signed-off-by: Mike Frysinger Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h index 531376b..bec05ed 100644 --- a/include/linux/i2c/adp5588.h +++ b/include/linux/i2c/adp5588.h @@ -141,9 +141,9 @@ struct adp5588_kpad_platform_data { }; struct adp5588_gpio_platform_data { - unsigned gpio_start; /* GPIO Chip base # */ - unsigned irq_base; /* interrupt base # */ - unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ + 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, int gpio, unsigned ngpio, void *context);