From c83d4abe1dfd6aec45f594ad756fb5256263c5b8 Mon Sep 17 00:00:00 2001 From: Bryan O'Donoghue Date: Wed, 23 Sep 2015 09:31:34 -0700 Subject: [PATCH] greybus: loopback: remove module specific identifier from debugfs name The datapoint we are using to return metrics across modules and cports shouldn't have a module identifier in it i.e. /sys/kernel/debug/gb_loopback/raw_latency_endo0 not /sys/kernel/debug/gb_loopback/raw_latency_endo0:X This patch removes the module_id used up to this point. Including module_id actually ends up making life harder in user-space so dropping it. Signed-off-by: Bryan O'Donoghue Reviewed-by: Patrick Titiano Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/loopback.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index e728216..5a6354e 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -883,11 +883,10 @@ 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:x entries */ + /* If this is the first connection - create a module endo0 entry */ mutex_lock(&gb_dev.mutex); if (!gb_dev.count) { - snprintf(name, sizeof(name), "raw_latency_endo0:%d", - connection->bundle->intf->module->module_id); + snprintf(name, sizeof(name), "raw_latency_endo0"); gb_dev.file = debugfs_create_file(name, S_IFREG | S_IRUGO, gb_dev.root, &gb_dev, &gb_loopback_debugfs_dev_latency_ops); -- 2.7.4