diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-11-25 15:59:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-11-25 15:27:06 -0800 |
commit | f0172c7043d772ed0d198046cb6142dd91ab2a5a (patch) | |
tree | 3d07feb3252f5a5fec43118dbf448ec564a7ae6a /drivers/staging/greybus/bundle.c | |
parent | 8b0df4b2eaf2f741ae44e8f5bad4ecb223f87932 (diff) | |
download | op-kernel-dev-f0172c7043d772ed0d198046cb6142dd91ab2a5a.zip op-kernel-dev-f0172c7043d772ed0d198046cb6142dd91ab2a5a.tar.gz |
greybus: bundle: rename bundle devices
Rename bundle devices so that the new device names become
"<bus_id>-<intf_id>.<bundle_id>", where bus_id is the dynamically
allocated host-device bus id and intf_id the svc-allocated interface
id.
Using a period (.) rather than a colon (:) makes dev-messages easier to
read as as those already add a colon after the device name, for example:
greybus 1-4.15: failed to connect cport: -22
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/bundle.c')
-rw-r--r-- | drivers/staging/greybus/bundle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index f746438..3df7d5f 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/staging/greybus/bundle.c @@ -148,7 +148,7 @@ struct gb_bundle *gb_bundle_create(struct gb_interface *intf, u8 bundle_id, bundle->dev.type = &greybus_bundle_type; bundle->dev.groups = bundle_groups; device_initialize(&bundle->dev); - dev_set_name(&bundle->dev, "%s:%d", dev_name(&intf->dev), bundle_id); + dev_set_name(&bundle->dev, "%s.%d", dev_name(&intf->dev), bundle_id); retval = device_add(&bundle->dev); if (retval) { |