]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
HID: Add transport-driver callbacks to the hid_ll_driver struct
authorFrank Praznik <frank.praznik@oh.rr.com>
Wed, 22 Jan 2014 18:49:41 +0000 (13:49 -0500)
committerJiri Kosina <jkosina@suse.cz>
Wed, 29 Jan 2014 13:23:41 +0000 (14:23 +0100)
Add raw_request and output_report callbacks to the hid_ll_driver struct.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Acked-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/hid.h

index 31b9d299ef6ca25bf3d5bfd753860d7d3294be68..003cc8e898317f3084bfcb888d6123fa55756c3e 100644 (file)
@@ -700,8 +700,14 @@ struct hid_ll_driver {
                        struct hid_report *report, int reqtype);
 
        int (*wait)(struct hid_device *hdev);
-       int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
 
+       int (*raw_request) (struct hid_device *hdev, unsigned char reportnum,
+                           __u8 *buf, size_t len, unsigned char rtype,
+                           int reqtype);
+
+       int (*output_report) (struct hid_device *hdev, __u8 *buf, size_t len);
+
+       int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
 };
 
 #define        PM_HINT_FULLON  1<<5