diff options
| author | Wentao Guan <guanwentao@uniontech.com> | 2025-02-14 19:04:18 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-10 14:33:39 +0200 |
| commit | b31a7802d470d6c3df6206313e2ea4a59d1f237e (patch) | |
| tree | a9aa8dd978543faeac2187b4d0f290faa2cc499d /drivers | |
| parent | 70bb0d7129908ce2b233ecbdba98989b434a8362 (diff) | |
| download | linux-b31a7802d470d6c3df6206313e2ea4a59d1f237e.tar.gz linux-b31a7802d470d6c3df6206313e2ea4a59d1f237e.tar.bz2 linux-b31a7802d470d6c3df6206313e2ea4a59d1f237e.zip | |
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>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/hid/i2c-hid/i2c-hid-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid-core.c b/drivers/hid/i2c-hid/i2c-hid-core.c index 0b05bb1e4410..8a7ac016b1ab 100644 --- a/drivers/hid/i2c-hid/i2c-hid-core.c +++ b/drivers/hid/i2c-hid/i2c-hid-core.c @@ -261,7 +261,7 @@ static int i2c_hid_get_report(struct i2c_hid *ihid, ihid->rawbuf, recv_len + sizeof(__le16)); if (error) { dev_err(&ihid->client->dev, - "failed to set a report to device: %d\n", error); + "failed to get a report from device: %d\n", error); return error; } |
