]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: i2c-hid: improve i2c_hid_get_report error message
authorWentao Guan <guanwentao@uniontech.com>
Fri, 14 Feb 2025 11:04:18 +0000 (19:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:37:37 +0000 (14:37 +0200)
commit4c8865331899c2a5441b446d3bcd78c33cae4157
treeba0c0048adbc4e254b533cb0b5657ab51d823a76
parent64f974466183b7f7c0ba00666728ce642cf31721
HID: i2c-hid: improve i2c_hid_get_report error message

[ Upstream commit 723aa55c08c9d1e0734e39a815fd41272eac8269 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/i2c-hid/i2c-hid-core.c