Skip to content

Commit 19a0b6d

Browse files
author
Jiri Kosina
committed
Merge branch 'for-5.11/i2c-hid' into for-linus
- error reporting fix from Coiby Xu
2 parents e77bc7d + afdd34c commit 19a0b6d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,8 +1106,11 @@ static int i2c_hid_probe(struct i2c_client *client,
11061106
}
11071107

11081108
ret = i2c_hid_fetch_hid_descriptor(ihid);
1109-
if (ret < 0)
1109+
if (ret < 0) {
1110+
dev_err(&client->dev,
1111+
"Failed to fetch the HID Descriptor\n");
11101112
goto err_regulator;
1113+
}
11111114

11121115
ret = i2c_hid_init_irq(client);
11131116
if (ret < 0)

0 commit comments

Comments
 (0)