mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-13 06:36:26 +07:00
greybus: loopback: use dev_name to populate sysfsname
dev_name() will give a nice string representing the end0:X:Y:Z:W name mitigating the need to pick apart the various nested data structures and print out their various identifiers. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Suggested-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Patrick Titiano <ptitiano@baylibre.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
fbb8edbafe
commit
26717ed328
@ -931,11 +931,8 @@ 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:%d:%d:%d:%d",
|
||||
connection->bundle->intf->module->module_id,
|
||||
connection->bundle->intf->interface_id,
|
||||
connection->bundle->id,
|
||||
connection->intf_cport_id);
|
||||
snprintf(name, sizeof(name), "raw_latency_endo0:%s",
|
||||
dev_name(&connection->dev));
|
||||
gb->file = debugfs_create_file(name, S_IFREG | S_IRUGO, gb_dev.root, gb,
|
||||
&gb_loopback_debugfs_latency_ops);
|
||||
gb->connection = connection;
|
||||
|
Loading…
Reference in New Issue
Block a user