aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2011-11-17 06:23:50 -0500
committerJiri Kosina <jkosina@suse.cz>2011-12-21 05:18:35 -0500
commit4371ea8202e98c8ef77ca887de3b19affbb3498f (patch)
treefc69c8be52b10dd549237ac117870e1fb872dfe8 /include/linux/hid.h
parentf0befcd64bc57e6a0b7a96c37c55f79e6b999af7 (diff)
HID: usbhid: defer LED setting to a workqueue
Defer LED setting action to a workqueue. This is more likely to send all LED change events in a single URB. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Acked-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 7f344c3da767..999a54c72b20 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -727,6 +727,8 @@ extern void hidinput_disconnect(struct hid_device *);
727int hid_set_field(struct hid_field *, unsigned, __s32); 727int hid_set_field(struct hid_field *, unsigned, __s32);
728int hid_input_report(struct hid_device *, int type, u8 *, int, int); 728int hid_input_report(struct hid_device *, int type, u8 *, int, int);
729int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field); 729int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field);
730struct hid_field *hidinput_get_led_field(struct hid_device *hid);
731unsigned int hidinput_count_leds(struct hid_device *hid);
730void hid_output_report(struct hid_report *report, __u8 *data); 732void hid_output_report(struct hid_report *report, __u8 *data);
731struct hid_device *hid_allocate_device(void); 733struct hid_device *hid_allocate_device(void);
732struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); 734struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id);