From 0bdb080c70495ea4efbed7661b4fe6100bd5adde Mon Sep 17 00:00:00 2001 From: Dominik Sliwa Date: Thu, 21 Feb 2019 10:23:08 +0100 Subject: Revert "backports: Remove unused parts" This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d. --- .../net_bluetooth_hidp_core.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch (limited to 'patches/0029-struct_hid_ll_driver-extensions/net_bluetooth_hidp_core.patch') 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 -- cgit v1.2.3