Skip to content

Commit 452e88e

Browse files
committed
HID: i2c-hid: improve i2c_hid_get_report error message
[ Upstream commit 723aa55 ] We have two places to print "failed to set a report to ...", use "get a report from" instead of "set a report to", it makes people who knows less about the module to know where the error happened. Before: i2c_hid_acpi i2c-FTSC1000:00: failed to set a report to device: -11 After: i2c_hid_acpi i2c-FTSC1000:00: failed to get a report from device: -11 Signed-off-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: Jiri Kosina <jkosina@suse.com> [ Backport from v6.15 ] Signed-off-by: WangYuli <wangyuli@uniontech.com>
1 parent 373019a commit 452e88e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static int i2c_hid_set_or_send_report(struct i2c_hid *ihid,
389389
error = i2c_hid_xfer(ihid, ihid->cmdbuf, length, NULL, 0);
390390
if (error) {
391391
dev_err(&ihid->client->dev,
392-
"failed to set a report to device: %d\n", error);
392+
"failed to get a report from device: %d\n", error);
393393
return error;
394394
}
395395

0 commit comments

Comments
 (0)