summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorIwona Winiarska <iwona.winiarska@intel.com>2022-05-03 01:58:43 +0300
committerIwona Winiarska <iwona.winiarska@intel.com>2022-05-25 14:23:21 +0300
commit52ac8c5e80f2406265fd09cbfe0599b56fe5bb27 (patch)
tree26ea1d6fc089d62d8b797196d6ae917a4d8fd5b4 /drivers
parentfd1963b9ab00d40c7902425fb82906f26170d8d0 (diff)
downloadlinux-52ac8c5e80f2406265fd09cbfe0599b56fe5bb27.tar.xz
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 <iwona.winiarska@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/i3c/mctp/i3c-mctp.c2
1 files changed, 1 insertions, 1 deletions
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;