summaryrefslogtreecommitdiff
path: root/security/keys/trusted.h
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2017-07-24 09:46:18 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-12-14 10:04:46 +0100
commite1e84bd83f1d2eb4d37ad1b62aa67c29665e1184 (patch)
treeb94b417765edf1acd5c8f92d8f6c863bf053ba4e /security/keys/trusted.h
parent575a0d95491df8cb6d0f566562c8edda4fcc5bb1 (diff)
downloadlinux-rt-e1e84bd83f1d2eb4d37ad1b62aa67c29665e1184.tar.gz
HID: introduce hid_is_using_ll_driver
commit fc2237a724a9e448599076d7d23497f51e2f7441 upstream. Although HID itself is transport-agnostic, occasionally a driver may want to interact with the low-level transport that a device is connected through. To do this, we need to know what kind of bus is in use. The first guess may be to look at the 'bus' field of the 'struct hid_device', but this field may be emulated in some cases (e.g. uhid). More ideally, we can check which ll_driver a device is using. This function introduces a 'hid_is_using_ll_driver' function and makes the 'struct hid_ll_driver' of the four most common transports accessible through hid.h. Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com> Acked-By: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/keys/trusted.h')
0 files changed, 0 insertions, 0 deletions