9
0
Fork 0

w1: gpio: use int for gpio

so we can use negative value for invalid gpio

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-12-22 03:16:57 +08:00
parent dbdd533232
commit 6cd8247eb7
1 changed files with 2 additions and 2 deletions

View File

@ -16,10 +16,10 @@
* @is_open_drain: GPIO pin is configured as open drain
*/
struct w1_gpio_platform_data {
unsigned int pin;
int pin;
unsigned int is_open_drain:1;
void (*enable_external_pullup)(int enable);
unsigned int ext_pullup_enable_pin;
int ext_pullup_enable_pin;
};
#endif /* _LINUX_W1_GPIO_H */