Both legs of a diagraph must return the same type.
This commit is contained in:
parent
035e707304
commit
333aec56cb
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: gpiovar.h,v 1.6 2008/05/27 19:26:27 dyoung Exp $ */
|
/* $NetBSD: gpiovar.h,v 1.7 2008/06/24 10:05:01 gmcgarry Exp $ */
|
||||||
/* $OpenBSD: gpiovar.h,v 1.3 2006/01/14 12:33:49 grange Exp $ */
|
/* $OpenBSD: gpiovar.h,v 1.3 2006/01/14 12:33:49 grange Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -55,7 +55,7 @@ int gpiobus_print(void *, const char *);
|
||||||
#define gpiobus_open(gc, dev) \
|
#define gpiobus_open(gc, dev) \
|
||||||
((gc)->gp_gc_open ? ((gc)->gp_gc_open((gc)->gp_cookie, dev)) : 0)
|
((gc)->gp_gc_open ? ((gc)->gp_gc_open((gc)->gp_cookie, dev)) : 0)
|
||||||
#define gpiobus_close(gc, dev) \
|
#define gpiobus_close(gc, dev) \
|
||||||
((gc)->gp_gc_close ? ((gc)->gp_gc_close((gc)->gp_cookie, dev)) : 0)
|
((gc)->gp_gc_close ? ((gc)->gp_gc_close((gc)->gp_cookie, dev)), 1 : 0)
|
||||||
#define gpiobus_pin_read(gc, pin) \
|
#define gpiobus_pin_read(gc, pin) \
|
||||||
((gc)->gp_pin_read((gc)->gp_cookie, (pin)))
|
((gc)->gp_pin_read((gc)->gp_cookie, (pin)))
|
||||||
#define gpiobus_pin_write(gc, pin, value) \
|
#define gpiobus_pin_write(gc, pin, value) \
|
||||||
|
|
Loading…
Reference in New Issue