]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: logitech-dj: Implement may_wakeup ll-driver callback
authorHans de Goede <hdegoede@redhat.com>
Sat, 29 May 2021 15:14:23 +0000 (17:14 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 25 Jun 2021 12:02:58 +0000 (14:02 +0200)
commit622d97cf7f2b4efb36bec3c85b5c1db5e3dfd586
tree25c4e49d9439c65eb04074267a26d0b0e23516bf
parent978e786c5e9bf538da0a4807539608a52d9be16b
HID: logitech-dj: Implement may_wakeup ll-driver callback

Without a ll-driver callback hid_hw_may_wakeup() will return:
device_may_wakeup(hdev->dev.parent), but for the hid devices
instantiated by logitech-dj for devices behind the receiver the
logitech-dj hid(pp)-device is the parent.

Add a logi_dj_ll_may_wakeup() callback which calls hid_hw_may_wakeup()
on the logitech-dj hid(pp) parent-hid-device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-logitech-dj.c