From 6cd8247eb74c22d4ed7fa0c60e63c5491e428b76 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 22 Dec 2012 03:16:57 +0800 Subject: [PATCH] w1: gpio: use int for gpio so we can use negative value for invalid gpio Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/linux/w1-gpio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/w1-gpio.h b/include/linux/w1-gpio.h index 065e3ae79..ae961ee32 100644 --- a/include/linux/w1-gpio.h +++ b/include/linux/w1-gpio.h @@ -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 */