Skip to content

Commit

Permalink
Merge branch 'for-5.17/i2c-hid' into for-linus
Browse files Browse the repository at this point in the history
- PM wakeup support for i2c-hid driver (Matthias Kaehlcke)
  • Loading branch information
Jiri Kosina committed Jan 10, 2022
2 parents c524559 + d951ae1 commit 906095a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/hid/i2c-hid/i2c-hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,9 +522,12 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)

i2c_hid_dbg(ihid, "input: %*ph\n", ret_size, ihid->inbuf);

if (test_bit(I2C_HID_STARTED, &ihid->flags))
if (test_bit(I2C_HID_STARTED, &ihid->flags)) {
pm_wakeup_event(&ihid->client->dev, 0);

hid_input_report(ihid->hid, HID_INPUT_REPORT, ihid->inbuf + 2,
ret_size - 2, 1);
}

return;
}
Expand Down

0 comments on commit 906095a

Please sign in to comment.