aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2021-05-29 15:14:22 +0000
committerJiri Kosina <[email protected]>2021-06-25 12:02:58 +0000
commit978e786c5e9bf538da0a4807539608a52d9be16b (patch)
tree7ed75c165e5dcb910a408efa821244559028b274 /net/switchdev/switchdev.c
parentHID: core: Add hid_hw_may_wakeup() function (diff)
downloadkernel-978e786c5e9bf538da0a4807539608a52d9be16b.tar.gz
kernel-978e786c5e9bf538da0a4807539608a52d9be16b.zip
HID: usbhid: Implement may_wakeup ll-driver callback
Without a ll-driver callback hid_hw_may_wakeup() will return: device_may_wakeup(hdev->dev.parent), usb_hid_driver instantiated hid devices have their parent set to the usb-interface to which the usb_hid_driver is bound, but the power/wakeup* sysfs attributes are part of the usb-device. Add a may_wakeup ll-driver callback which calls device_may_wakeup() on the usb-device instead. Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions