From: Johan Hovold Date: Wed, 25 Nov 2015 14:59:05 +0000 (+0100) Subject: greybus: bundle: rename bundle devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f0172c7043d772ed0d198046cb6142dd91ab2a5a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: bundle: rename bundle devices Rename bundle devices so that the new device names become "-.", 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/bundle.c b/drivers/staging/greybus/bundle.c index f746438bc962..3df7d5f915f9 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) {