aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
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 9cf8e7ae7450..9c02d07af0d1 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -71,6 +71,7 @@
71#include <linux/timer.h> 71#include <linux/timer.h>
72#include <linux/workqueue.h> 72#include <linux/workqueue.h>
73#include <linux/input.h> 73#include <linux/input.h>
74#include <linux/semaphore.h>
74 75
75/* 76/*
76 * We parse each description item into this structure. Short items data 77 * We parse each description item into this structure. Short items data
@@ -475,6 +476,7 @@ struct hid_device { /* device report descriptor */
475 unsigned country; /* HID country */ 476 unsigned country; /* HID country */
476 struct hid_report_enum report_enum[HID_REPORT_TYPES]; 477 struct hid_report_enum report_enum[HID_REPORT_TYPES];
477 478
479 struct semaphore driver_lock; /* protects the current driver */
478 struct device dev; /* device */ 480 struct device dev; /* device */
479 struct hid_driver *driver; 481 struct hid_driver *driver;
480 struct hid_ll_driver *ll_driver; 482 struct hid_ll_driver *ll_driver;