Commit dc3da5db authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: loopback: remove endo reference

Replace reference to "endo0" and generate the raw-latency filename based
on the host-device bus id instead.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 684156a9
......@@ -922,10 +922,11 @@ static int gb_loopback_connection_init(struct gb_connection *connection)
return -ENOMEM;
gb_loopback_reset_stats(&gb_dev);
/* If this is the first connection - create a module endo0 entry */
/* If this is the first connection - create a per-bus entry */
mutex_lock(&gb_dev.mutex);
if (!gb_dev.count) {
snprintf(name, sizeof(name), "raw_latency_endo0");
snprintf(name, sizeof(name), "raw_latency_%d",
connection->bundle->intf->hd->bus_id);
gb_dev.file = debugfs_create_file(name, S_IFREG | S_IRUGO,
gb_dev.root, &gb_dev,
&gb_loopback_debugfs_dev_latency_ops);
......
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