]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
greybus: loopback: drop redundant endo0 string from debugfs entry name
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 23 Sep 2015 16:31:33 +0000 (09:31 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 23 Sep 2015 19:46:16 +0000 (12:46 -0700)
dev_name() will return the endo0 component of the string on it's own,
there's no need to include it in the snprintf() when construting the
debugfs name. This fixes 'endo0' appearing more than once in the debugfs
name - shamefully slipped through testing cb570c93783f
('greybus/loopback: use dev_name to populate sysfsname').

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index 764ee83df082b10d7e8f07ff1a0e0a83fb2f9863..e728216a61cb9e9edca092a3d230f53ff0c8d01b 100644 (file)
@@ -906,7 +906,7 @@ static int gb_loopback_connection_init(struct gb_connection *connection)
        }
 
        /* Create per-connection sysfs and debugfs data-points */
-       snprintf(name, sizeof(name), "raw_latency_endo0:%s",
+       snprintf(name, sizeof(name), "raw_latency_%s",
                 dev_name(&connection->dev));
        gb->file = debugfs_create_file(name, S_IFREG | S_IRUGO, gb_dev.root, gb,
                                       &gb_loopback_debugfs_latency_ops);