summaryrefslogtreecommitdiff
path: root/patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch')
-rw-r--r--patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch b/patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch
new file mode 100644
index 00000000..6cccf460
--- /dev/null
+++ b/patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch
@@ -0,0 +1,29 @@
+--- a/net/bluetooth/hidp/core.c
++++ b/net/bluetooth/hidp/core.c
+@@ -224,6 +224,7 @@ static void hidp_input_report(struct hid
+ input_sync(dev);
+ }
+
++#if LINUX_VERSION_IS_GEQ(3,15,0)
+ static int hidp_get_raw_report(struct hid_device *hid,
+ unsigned char report_number,
+ unsigned char *data, size_t count,
+@@ -396,6 +397,7 @@ static int hidp_raw_request(struct hid_d
+ return -EIO;
+ }
+ }
++#endif
+
+ static void hidp_idle_timeout(unsigned long arg)
+ {
+@@ -739,8 +741,10 @@ static struct hid_ll_driver hidp_hid_dri
+ .stop = hidp_stop,
+ .open = hidp_open,
+ .close = hidp_close,
++#if LINUX_VERSION_IS_GEQ(3,15,0)
+ .raw_request = hidp_raw_request,
+ .output_report = hidp_output_report,
++#endif
+ };
+
+ /* This function sets up the hid device. It does not add it