#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 ion value='master' selected='selected'>master net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-11-29 11:50:03 +0000
committerMark Brown <broonie@kernel.org>2016-11-30 17:44:16 +0000
commit109c75afa1cf7c08015f19e354bed581f29f7a94 (patch)
tree94b7c791b7cd83225d6701b10b6d4c1aeac5151a /net/ipv4/fib_trie.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: core: Correct type of mode in regulator_mode_constrain
Every function handling the mode within the regulator core uses an unsigned int for mode, except for regulator_mode_constrain. This patch changes the type of mode within regulator_mode_constrain which fixes several instances where we are passing pointers to unsigned ints then treating them as an int within this function. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/ipv4/fib_trie.c')