From 52ac8c5e80f2406265fd09cbfe0599b56fe5bb27 Mon Sep 17 00:00:00 2001 From: Iwona Winiarska Date: Tue, 3 May 2022 00:58:43 +0200 Subject: i3c: mctp: Use ID instead of I3C devname in chardev name Using I3C device name in char device name makes it longer. There is no need to keep information about I3C device in name, since we have access to this information via sysfs. Signed-off-by: Iwona Winiarska --- drivers/i3c/mctp/i3c-mctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/i3c/mctp/i3c-mctp.c b/drivers/i3c/mctp/i3c-mctp.c index 83f7dae454be..560884ccc51a 100644 --- a/drivers/i3c/mctp/i3c-mctp.c +++ b/drivers/i3c/mctp/i3c-mctp.c @@ -297,7 +297,7 @@ static int i3c_mctp_probe(struct i3c_device *i3cdev) /* register this i3c device with the driver core */ priv->dev = device_create(i3c_mctp_class, dev, MKDEV(MAJOR(i3c_mctp_devt), priv->id), - NULL, "i3c-mctp-%s", dev_name(dev)); + NULL, "i3c-mctp-%d", priv->id); if (IS_ERR(priv->dev)) { ret = PTR_ERR(priv->dev); goto error; -- cgit v1.2.3