diff options
author | Christian Gromm <[email protected]> | 2019-04-02 13:39:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-04-02 20:23:07 +0200 |
commit | 131ac62253dba79daf4a6d83ab12293d2b9863d3 (patch) | |
tree | 2f5b7ac92a47f07f4d0b82b9ce7f72a6cd7ee2ab | |
parent | 360b921bdfbaf8d1c6483d77c5b7d1491be44a6d (diff) |
staging: most: core: use device description as name
This patch uses the device description to clearly identity a device
attached to the bus. It is needed as the currently useed mdevX
notation is not sufficiant in case more than one network
interface controller is being used at the same time.
Cc: [email protected]
Signed-off-by: Christian Gromm <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/staging/most/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 18936cdb1083..956daf8c3bd2 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -1431,7 +1431,7 @@ int most_register_interface(struct most_interface *iface) INIT_LIST_HEAD(&iface->p->channel_list); iface->p->dev_id = id; - snprintf(iface->p->name, STRING_SIZE, "mdev%d", id); + strcpy(iface->p->name, iface->description); iface->dev.init_name = iface->p->name; iface->dev.bus = &mc.bus; iface->dev.parent = &mc.dev; |