#undef TRACE_SYSTEM #define TRACE_SYSTEM gpio #ifndef CONFIG_TRACING_EVENTS_GPIO #define NOTRACE #endif #if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_GPIO_H #include TRACE_EVENT(gpio_direction, TP_PROTO(unsigned gpio, int in, int err), TP_ARGS(gpio, in, err), TP_STRUCT__entry( __field(unsigned, gpio) __field(int, in) __field(int, err) ), TP_fast_assign( __entry->gpio = gpio; __entry->in = in; __entry->err = err; ), TP_printk("%u %3s (%d)", __entry->gpio, __entry->in ? "in" : "out", __entry->err) ); TRACE_EVENT(gpio_value, TP_PROTO(unsigned gpio, int get, int value), TP_ARGS(gpio, get, value), TP_STRUCT__entry( __field(unsigned, gpio) __field(int, get) __field(int, value) ), TP_fast_assign( __entry->gpio = gpio; __entry->get = get; __entry->value = value; ), TP_printk("%u %3s %d", __entry->gpio, __entry->get ? "get" : "set", __entry->value) ); #endif /* if !defined(_TRACE_GPIO_H) || defined(TRACE_HEADER_MULTI_READ) */ /* This part must be outside protection */ #include leanup'>emaclite-cleanup net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-29 10:56:56 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-29 10:56:56 -0800
commit2c5d9555d6d937966d79d4c6529a5f7b9206e405 (patch)
tree4f3d220ea3aeaadcae0796c5456e0ef9a908071d /include/net/irda/qos.h
parent53cd1ad1a68fd10f677445e04ed63aa9ce39b36b (diff)
parent2ad5d52d42810bed95100a3d912679d8864421ec (diff)
Merge branch 'parisc-4.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
Pull two parisc fixes from Helge Deller: "One fix to avoid usage of BITS_PER_LONG in user-space exported swab.h header which breaks compiling qemu, and one trivial fix for printk continuation in the parisc parport driver" * 'parisc-4.10-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux: parisc: Don't use BITS_PER_LONG in userspace-exported swab.h header parisc, parport_gsc: Fixes for printk continuation lines
Diffstat (limited to 'include/net/irda/qos.h')