diff options
Diffstat (limited to 'patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch')
-rw-r--r-- | patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch | 36 |
1 files changed, 13 insertions, 23 deletions
diff --git a/patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch b/patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch index 81d742b2..19b3b854 100644 --- a/patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch +++ b/patches/collateral-evolutions/network/85-hid_ll_driver/net_bluetooth_hidp_core.patch @@ -1,48 +1,38 @@ --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c -@@ -355,6 +355,7 @@ err: +@@ -223,6 +223,7 @@ static void hidp_input_report(struct hid + input_sync(dev); } - #endif /* (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,38)) */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) - static int hidp_set_raw_report(struct hid_device *hid, unsigned char reportnum, - unsigned char *data, size_t count, - unsigned char report_type) -@@ -419,6 +420,7 @@ err: + static int hidp_get_raw_report(struct hid_device *hid, + unsigned char report_number, + unsigned char *data, size_t count, +@@ -307,6 +308,7 @@ err: mutex_unlock(&session->report_mutex); return ret; } +#endif - #if defined(CPTCFG_BACKPORT_OPTION_BT_SOCK_CREATE_NEEDS_KERN) - static int hidp_output_raw_report(struct hid_device *hid, unsigned char *data, size_t count, -@@ -489,6 +491,7 @@ static int hidp_output_raw_report(struct + static int hidp_set_raw_report(struct hid_device *hid, unsigned char reportnum, + unsigned char *data, size_t count, +@@ -394,6 +396,7 @@ static int hidp_output_raw_report(struct + return hidp_set_raw_report(hid, data[0], data, count, report_type); } - #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) static int hidp_raw_request(struct hid_device *hid, unsigned char reportnum, __u8 *buf, size_t len, unsigned char rtype, int reqtype) -@@ -502,7 +505,9 @@ static int hidp_raw_request(struct hid_d +@@ -407,6 +410,7 @@ static int hidp_raw_request(struct hid_d return -EIO; } } +#endif -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) - static int hidp_output_report(struct hid_device *hid, __u8 *data, size_t count) - { - struct hidp_session *session = hid->driver_data; -@@ -511,6 +516,7 @@ static int hidp_output_report(struct hid - HIDP_TRANS_DATA | HIDP_DATA_RTYPE_OUPUT, - data, count); - } -+#endif - static void hidp_idle_timeout(unsigned long arg) { -@@ -909,8 +915,10 @@ static struct hid_ll_driver hidp_hid_dri +@@ -736,8 +740,10 @@ static struct hid_ll_driver hidp_hid_dri .stop = hidp_stop, .open = hidp_open, .close = hidp_close, @@ -50,6 +40,6 @@ .raw_request = hidp_raw_request, .output_report = hidp_output_report, +#endif - .hidinput_input_event = hidp_hidinput_event, }; + /* This function sets up the hid device. It does not add it |