#undef TRACE_SYSTEM #define TRACE_SYSTEM spmi #if !defined(_TRACE_SPMI_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_SPMI_H #include #include /* * drivers/spmi/spmi.c */ TRACE_EVENT(spmi_write_begin, TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf), TP_ARGS(opcode, sid, addr, len, buf), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( u8, len ) __dynamic_array ( u8, buf, len + 1 ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->len = len + 1; memcpy(__get_dynamic_array(buf), buf, len + 1); ), TP_printk("opc=%d sid=%02d addr=0x%04x len=%d buf=0x[%*phD]", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, (int)__entry->len, (int)__entry->len, __get_dynamic_array(buf)) ); TRACE_EVENT(spmi_write_end, TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret), TP_ARGS(opcode, sid, addr, ret), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( int, ret ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->ret = ret; ), TP_printk("opc=%d sid=%02d addr=0x%04x ret=%d", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, __entry->ret) ); TRACE_EVENT(spmi_read_begin, TP_PROTO(u8 opcode, u8 sid, u16 addr), TP_ARGS(opcode, sid, addr), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; ), TP_printk("opc=%d sid=%02d addr=0x%04x", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr) ); TRACE_EVENT(spmi_read_end, TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf), TP_ARGS(opcode, sid, addr, ret, len, buf), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( u16, addr ) __field ( int, ret ) __field ( u8, len ) __dynamic_array ( u8, buf, len + 1 ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->addr = addr; __entry->ret = ret; __entry->len = len + 1; memcpy(__get_dynamic_array(buf), buf, len + 1); ), TP_printk("opc=%d sid=%02d addr=0x%04x ret=%d len=%02d buf=0x[%*phD]", (int)__entry->opcode, (int)__entry->sid, (int)__entry->addr, __entry->ret, (int)__entry->len, (int)__entry->len, __get_dynamic_array(buf)) ); TRACE_EVENT(spmi_cmd, TP_PROTO(u8 opcode, u8 sid, int ret), TP_ARGS(opcode, sid, ret), TP_STRUCT__entry( __field ( u8, opcode ) __field ( u8, sid ) __field ( int, ret ) ), TP_fast_assign( __entry->opcode = opcode; __entry->sid = sid; __entry->ret = ret; ), TP_printk("opc=%d sid=%02d ret=%d", (int)__entry->opcode, (int)__entry->sid, ret) ); #endif /* _TRACE_SPMI_H */ /* This part must be outside protection */ #include 5321f0927ad2303e7f71767d402e0ff36a9a87'/>
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2016-11-10 10:59:15 +0530
committerMark Brown <broonie@kernel.org>2016-11-11 15:36:38 +0000
commit205321f0927ad2303e7f71767d402e0ff36a9a87 (patch)
treefc103f416e5df36a8a2a6c5d88f24f4f6c5a65bc /include/crypto/gf128mul.h
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: lp873x: Add support for populating input supply
In order to have a proper topology of regulators for a platform, each registering regulator needs to populate supply_name field for identifying its supply's name. Add supply_name field for lp873x regulators. Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/crypto/gf128mul.h')