summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/hid.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-08-19 01:37:50 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2013-10-28 20:53:40 +0100
commitef6119c1805a3cf0d49a9c490b937b94f6519952 (patch)
tree36434c5c0cf040841040e659a7690d30502b84ec /backport/backport-include/linux/hid.h
parent534ad108d0a4cd5861793c52a5260a082d822b32 (diff)
backports: add hid_alloc_report_buf()
Upstream commit: 1a996968fc51cc1323e1bedceb32143aa1226e9b This is now in kernel 3.10+ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport/backport-include/linux/hid.h')
-rw-r--r--backport/backport-include/linux/hid.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backport/backport-include/linux/hid.h b/backport/backport-include/linux/hid.h
index 22ff6f14..555ec2bd 100644
--- a/backport/backport-include/linux/hid.h
+++ b/backport/backport-include/linux/hid.h
@@ -34,4 +34,9 @@ extern bool hid_ignore(struct hid_device *);
.bus = BUS_BLUETOOTH, .vendor = (ven), .product = (prod)
#endif
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
+#define hid_alloc_report_buf LINUX_BACKPORT(hid_alloc_report_buf)
+u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags);
+#endif
+
#endif /* __BACKPORT_HID_H */