#if IS_ENABLED(CONFIG_NET_DEVLINK) #undef TRACE_SYSTEM #define TRACE_SYSTEM devlink #if !defined(_TRACE_DEVLINK_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_DEVLINK_H #include #include #include /* * Tracepoint for devlink hardware message: */ TRACE_EVENT(devlink_hwmsg, TP_PROTO(const struct devlink *devlink, bool incoming, unsigned long type, const u8 *buf, size_t len), TP_ARGS(devlink, incoming, type, buf, len), TP_STRUCT__entry( __string(bus_name, devlink->dev->bus->name) __string(dev_name, dev_name(devlink->dev)) __string(driver_name, devlink->dev->driver->name) __field(bool, incoming) __field(unsigned long, type) __dynamic_array(u8, buf, len) __field(size_t, len) ), TP_fast_assign( __assign_str(bus_name, devlink->dev->bus->name); __assign_str(dev_name, dev_name(devlink->dev)); __assign_str(driver_name, devlink->dev->driver->name); __entry->incoming = incoming; __entry->type = type; memcpy(__get_dynamic_array(buf), buf, len); __entry->len = len; ), TP_printk("bus_name=%s dev_name=%s driver_name=%s incoming=%d type=%lu buf=0x[%*phD] len=%zu", __get_str(bus_name), __get_str(dev_name), __get_str(driver_name), __entry->incoming, __entry->type, (int) __entry->len, __get_dynamic_array(buf), __entry->len) ); #endif /* _TRACE_DEVLINK_H */ /* This part must be outside protection */ #include #else /* CONFIG_NET_DEVLINK */ #if !defined(_TRACE_DEVLINK_H) #define _TRACE_DEVLINK_H #include static inline void trace_devlink_hwmsg(const struct devlink *devlink, bool incoming, unsigned long type, const u8 *buf, size_t len) { } #endif /* _TRACE_DEVLINK_H */ #endif git/log/include/dt-bindings/display/tda998x.h?h=nds-private-remove'>logtreecommitdiff
40'>40
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorRaju Lakkaraju <Raju.Lakkaraju@microsemi.com>2017-02-07 19:10:26 +0530
committerDavid S. Miller <davem@davemloft.net>2017-02-08 13:29:04 -0500
commit04d8a0a5f3b6887543850d991a5e37c4ec90e250 (patch)
treeee1fafb2122c2b29c7cb19e571bd7229afdbf847 /tools/thermal
parentff4cf0e5ce952488074aa7f47734af1794f55fbc (diff)
net: phy: Add LED mode driver for Microsemi PHYs.
LED Mode: Microsemi PHY support 2 LEDs (LED[0] and LED[1]) to display different status information that can be selected by setting LED mode. LED Mode parameter (vsc8531, led-0-mode) and (vsc8531, led-1-mode) get from Device Tree. Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/thermal')