mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] w1: gpio: use int for gpio
@ 2012-12-23 18:30 Jean-Christophe PLAGNIOL-VILLARD
  2012-12-23 18:30 ` [PATCH 2/2] at91: sam9x5el: use -EINVAL for invalid gpio on 1-wire Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-12-23 18:30 UTC (permalink / raw)
  To: barebox

so we can use negative value for invalid gpio

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 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 065e3ae..ae961ee 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 */
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-23 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-23 18:30 [PATCH 1/2] w1: gpio: use int for gpio Jean-Christophe PLAGNIOL-VILLARD
2012-12-23 18:30 ` [PATCH 2/2] at91: sam9x5el: use -EINVAL for invalid gpio on 1-wire Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox