Commit 5d9c68da authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
parent d9a9ea1b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment