Merge branch 'for-3.15/sony' into for-3.15/hid-core-ll-transport-cleanup
authorJiri Kosina <jkosina@suse.cz>
Fri, 14 Mar 2014 14:30:16 +0000 (15:30 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 14 Mar 2014 14:30:16 +0000 (15:30 +0100)
1  2 
drivers/hid/Kconfig
drivers/hid/hid-sony.c

Simple merge
index e3e89b6a41c28d9b18702e8c53e21218cb292840,b1aa6f00c827574eee039a597a81b7f7a481d4b9..b5fe65e70dc4f19eb76d3b6039b52fe3bdbeb1fd
@@@ -720,10 -1072,22 +1072,22 @@@ static int sixaxis_set_operational_usb(
  static int sixaxis_set_operational_bt(struct hid_device *hdev)
  {
        unsigned char buf[] = { 0xf4,  0x42, 0x03, 0x00, 0x00 };
 -      return hid_output_raw_report(hdev, buf, sizeof(buf),
 -                                   HID_FEATURE_REPORT);
 +      return hid_hw_raw_request(hdev, buf[0], buf, sizeof(buf),
 +                                HID_FEATURE_REPORT, HID_REQ_SET_REPORT);
  }
  
+ /*
+  * Requesting feature report 0x02 in Bluetooth mode changes the state of the
+  * controller so that it sends full input reports of type 0x11.
+  */
+ static int dualshock4_set_operational_bt(struct hid_device *hdev)
+ {
+       __u8 buf[37] = { 0 };
+       return hid_hw_raw_request(hdev, 0x02, buf, sizeof(buf),
+                               HID_FEATURE_REPORT, HID_REQ_GET_REPORT);
+ }
  static void buzz_set_leds(struct hid_device *hdev, const __u8 *leds)
  {
        struct list_head *report_list =