diff options
author | Jiri Kosina <jkosina@suse.com> | 2025-06-03 09:32:30 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2025-06-03 09:32:30 +0200 |
commit | c48228c476ffe35ec99af6660af602956ffaa12b (patch) | |
tree | 5974935df2ee490d50d8de603f084560a60bd45f /include | |
parent | 6920d9625730d260c5f5f517799e25de4ea5e7d7 (diff) | |
parent | 6a9e76f75c1a8fffbf45d4665daaf24e7d30095f (diff) |
Merge branch 'for-6.16/core' into for-linus
- power management improvement for multitouch devices (Werner Sembach)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index a1305210b2fd..568a9d8c749b 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -795,6 +795,8 @@ struct hid_usage_id { * @suspend: invoked on suspend (NULL means nop) * @resume: invoked on resume if device was not reset (NULL means nop) * @reset_resume: invoked on resume if device was reset (NULL means nop) + * @on_hid_hw_open: invoked when hid core opens first instance (NULL means nop) + * @on_hid_hw_close: invoked when hid core closes last instance (NULL means nop) * * probe should return -errno on error, or 0 on success. During probe, * input will not be passed to raw_event unless hid_device_io_start is @@ -850,6 +852,8 @@ struct hid_driver { int (*suspend)(struct hid_device *hdev, pm_message_t message); int (*resume)(struct hid_device *hdev); int (*reset_resume)(struct hid_device *hdev); + void (*on_hid_hw_open)(struct hid_device *hdev); + void (*on_hid_hw_close)(struct hid_device *hdev); /* private: */ struct device_driver driver; |