]> git.baikalelectronics.ru Git - kernel.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)
commitd6c38b4ba1913447f4f75d98bb1e345c2dfce381
tree25c4e49d9439c65eb04074267a26d0b0e23516bf
parent4e4fd6cdbd5b73f54c3cfdf72ee947686f533c2a
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