summaryrefslogtreecommitdiff
path: root/net/bluetooth/hidp/hidp.h
diff options
context:
space:
mode:
authorMichael Poole <mdpoole@troilus.org>2010-02-05 17:23:43 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2010-02-05 17:50:05 (GMT)
commit15c697ce1c5b408c5e20dcdc6aea2968d1125b75 (patch)
tree3326cde1d106ed92046639e23bb81a9fc3b3f667 /net/bluetooth/hidp/hidp.h
parentc390216b3e868b16d8154939f4b6f8c16dbd9a9f (diff)
downloadlinux-15c697ce1c5b408c5e20dcdc6aea2968d1125b75.tar.xz
Bluetooth: Keep a copy of each HID device's report descriptor
The report descriptor is read by user space (via the Service Discovery Protocol), so it is only available during the ioctl to connect. However, the HID probe function that needs the descriptor might not be called until a specific module is loaded. Keep a copy of the descriptor so it is available for later use. Signed-off-by: Michael Poole <mdpoole@troilus.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hidp/hidp.h')
-rw-r--r--net/bluetooth/hidp/hidp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/hidp/hidp.h b/net/bluetooth/hidp/hidp.h
index faf3d74..a4e215d 100644
--- a/net/bluetooth/hidp/hidp.h
+++ b/net/bluetooth/hidp/hidp.h
@@ -154,7 +154,9 @@ struct hidp_session {
struct sk_buff_head ctrl_transmit;
struct sk_buff_head intr_transmit;
- struct hidp_connadd_req *req;
+ /* Report descriptor */
+ __u8 *rd_data;
+ uint rd_size;
};
static inline void hidp_schedule(struct hidp_session *session)