Skip to content

Commit f3984ed

Browse files
westeriJiri Kosina
authored andcommitted
HID: i2c-hid: Fill in physical device providing HID functionality
Currently hid_connect() prints out following when I2C connected HID devices is connected: hid-multitouch 0018:03EB:2136.0001: ... [ATML3432:00 03EB:2136] on After "on " should read physical device name but it is left empty by the driver. Make it look better and fill in the physical device name. Signed-off-by: Mika Westerberg <[email protected]> Acked-by: Benjamin Tissoires <[email protected]> Reviewed-by: Daniel Martin <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 0678072 commit f3984ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hid/i2c-hid/i2c-hid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ static int i2c_hid_probe(struct i2c_client *client,
10281028

10291029
snprintf(hid->name, sizeof(hid->name), "%s %04hX:%04hX",
10301030
client->name, hid->vendor, hid->product);
1031+
strlcpy(hid->phys, dev_name(&client->dev), sizeof(hid->phys));
10311032

10321033
ret = hid_add_device(hid);
10331034
if (ret) {

0 commit comments

Comments
 (0)