mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
i2c-tiny-usb: Fix truncated adapter name
Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Till Harbaum <lists@harbaum.org>
This commit is contained in:
parent
de81d2aaeb
commit
6a7ce82f02
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue