]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: core: Add functions for HID drivers to react on first open and last close call
authorWerner Sembach <wse@tuxedocomputers.com>
Tue, 11 Feb 2025 13:39:05 +0000 (14:39 +0100)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 13 May 2025 13:59:03 +0000 (15:59 +0200)
commita98e892c694284256296465a78d11072e2c5419f
tree4cb41198bdac5684f34eee1140bed9219378c4e8
parenta058002358b7aaf14674b2a0daa5194bfa5720a1
HID: core: Add functions for HID drivers to react on first open and last close call

Adds a new function to the hid_driver struct that is called when the
userspace starts using the device, and another one that is called when
userspace stop using the device. With this a hid driver can implement
special suspend handling for devices currently not in use.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Link: https://patch.msgid.link/20250211133950.422232-1-wse@tuxedocomputers.com
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/hid-core.c
include/linux/hid.h