diff options
author | Greg Kroah-Hartman | 2015-10-17 01:55:29 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-10-19 21:09:10 +0200 |
commit | 5d9c68da01e80c145bfc5e28ccb27b17d3a016b3 (patch) | |
tree | e783648ea30834c6b76750e19634b960652867a1 /drivers/staging/greybus/greybus_trace.h | |
parent | greybus: loopback: use the bundle struct device instead of the connector (diff) | |
download | kernel-qcow2-linux-5d9c68da01e80c145bfc5e28ccb27b17d3a016b3.tar.gz kernel-qcow2-linux-5d9c68da01e80c145bfc5e28ccb27b17d3a016b3.tar.xz kernel-qcow2-linux-5d9c68da01e80c145bfc5e28ccb27b17d3a016b3.zip |
greybus: greybus_trace: use the bundle struct device instead of the connector
We are removing struct device from the gb_connection structure in the
near future. The gb_bundle structure's struct device should be used as
a replacement.
This patch moves the greybus trace code to use the bundle pointer
instead of the connection pointer when printing out tracing messages.
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_trace.h')
-rw-r--r-- | drivers/staging/greybus/greybus_trace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/staging/greybus/greybus_trace.h index 6c88d34d6f5d..e5e3cc0ce0a8 100644 --- a/drivers/staging/greybus/greybus_trace.h +++ b/drivers/staging/greybus/greybus_trace.h @@ -24,7 +24,7 @@ DECLARE_EVENT_CLASS(gb_message, TP_ARGS(message), TP_STRUCT__entry( - __string(name, dev_name(&message->operation->connection->dev)) + __string(name, dev_name(&message->operation->connection->bundle->dev)) __field(u16, op_id) __field(u16, intf_cport_id) __field(u16, hd_cport_id) @@ -32,7 +32,7 @@ DECLARE_EVENT_CLASS(gb_message, ), TP_fast_assign( - __assign_str(name, dev_name(&message->operation->connection->dev)) + __assign_str(name, dev_name(&message->operation->connection->bundle->dev)) __entry->op_id = message->operation->id; __entry->intf_cport_id = message->operation->connection->intf_cport_id; |