diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2010-10-27 18:33:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 21:03:07 -0400 |
commit | 9ef8c8c51a7d76bae73e0259c356b24533b6b7c0 (patch) | |
tree | 7dc3a50966ed68cf1980a86729a476521838e0e1 /include/linux/i2c | |
parent | 459773ae8dbbd480886d186181c6bc2e8556025f (diff) |
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 <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/adp5588.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h index 531376b77773..bec05ed21766 100644 --- a/include/linux/i2c/adp5588.h +++ b/include/linux/i2c/adp5588.h | |||
@@ -141,9 +141,9 @@ struct adp5588_kpad_platform_data { | |||
141 | }; | 141 | }; |
142 | 142 | ||
143 | struct adp5588_gpio_platform_data { | 143 | struct adp5588_gpio_platform_data { |
144 | unsigned gpio_start; /* GPIO Chip base # */ | 144 | int gpio_start; /* GPIO Chip base # */ |
145 | unsigned irq_base; /* interrupt base # */ | 145 | unsigned irq_base; /* interrupt base # */ |
146 | unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ | 146 | unsigned pullup_dis_mask; /* Pull-Up Disable Mask */ |
147 | int (*setup)(struct i2c_client *client, | 147 | int (*setup)(struct i2c_client *client, |
148 | int gpio, unsigned ngpio, | 148 | int gpio, unsigned ngpio, |
149 | void *context); | 149 | void *context); |