提交 6a7ce82f 编写于 作者: J Jean Delvare 提交者: Jean Delvare

i2c-tiny-usb: Fix truncated adapter name

Signed-off-by: NJean Delvare <khali@linux-fr.org>
Cc: Till Harbaum <lists@harbaum.org>
上级 de81d2aa
......@@ -208,7 +208,7 @@ static int i2c_tiny_usb_probe(struct usb_interface *interface,
dev->adapter.class = I2C_CLASS_HWMON;
dev->adapter.algo = &usb_algorithm;
dev->adapter.algo_data = dev;
snprintf(dev->adapter.name, I2C_NAME_SIZE,
snprintf(dev->adapter.name, sizeof(dev->adapter.name),
"i2c-tiny-usb at bus %03d device %03d",
dev->usb_dev->bus->busnum, dev->usb_dev->devnum);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册