From: Johan Hovold Date: Wed, 25 Nov 2015 14:59:20 +0000 (+0100) Subject: greybus: loopback: remove endo reference X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dc3da5db2858c3fb33441988d1b6d56c06e53d7d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Johan Hovold Reviewed-by: Bryan O'Donoghue Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index ededfef40e9c..ef16ca579ca1 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -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);