Merge branch 'for-3.15/hid-core-ll-transport-cleanup' into for-linus
authorJiri Kosina <jkosina@suse.cz>
Tue, 1 Apr 2014 17:05:09 +0000 (19:05 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 1 Apr 2014 17:05:09 +0000 (19:05 +0200)
Conflicts:
drivers/hid/hid-ids.h
drivers/hid/hid-sony.c
drivers/hid/i2c-hid/i2c-hid.c

1  2 
drivers/hid/hid-core.c
drivers/hid/hid-hyperv.c
drivers/hid/hid-ids.h
drivers/hid/hid-input.c
drivers/hid/hid-sony.c
drivers/hid/hidraw.c
drivers/hid/i2c-hid/i2c-hid.c
net/bluetooth/hidp/core.c

Simple merge
Simple merge
index 00fd7452722f5a9336ec51c2c050a107031e90c9,239f29c1c85c14f64fe5d51ff1a935b98377d06c..5c34e658fd5983bb61b85ac7bb4cccc4964360b6
  
  #define USB_VENDOR_ID_CYGNAL          0x10c4
  #define USB_DEVICE_ID_CYGNAL_RADIO_SI470X     0x818a
 +#define USB_DEVICE_ID_FOCALTECH_FTXXXX_MULTITOUCH     0x81b9
+ #define USB_DEVICE_ID_CYGNAL_CP2112   0xea90
  
  #define USB_VENDOR_ID_CYPRESS         0x04b4
  #define USB_DEVICE_ID_CYPRESS_MOUSE   0x0001
Simple merge
index 2f19b15f47f2ffca68de731ef0e0ba3ae53c972b,4884bb567bf88ab0a71030c6eb9666c4fc88cbab..b3e82585309e51ec85297d4be4e797871a71f21a
@@@ -1095,10 -1670,23 +1670,27 @@@ static int sony_probe(struct hid_devic
                        goto err_stop;
        }
  
 +      if (sc->quirks & SONY_FF_SUPPORT) {
 +              ret = sony_init_ff(hdev);
 +              if (ret < 0)
 +                      goto err_stop;
+       if (sc->quirks & SONY_BATTERY_SUPPORT) {
+               ret = sony_battery_probe(sc);
+               if (ret < 0)
+                       goto err_stop;
+               /* Open the device to receive reports with battery info */
+               ret = hid_hw_open(hdev);
+               if (ret < 0) {
+                       hid_err(hdev, "hw open failed\n");
+                       goto err_stop;
+               }
+       }
+       if (sc->quirks & SONY_FF_SUPPORT) {
+               ret = sony_init_ff(hdev);
+               if (ret < 0)
+                       goto err_close;
        }
  
        return 0;
@@@ -1116,8 -1711,15 +1715,17 @@@ static void sony_remove(struct hid_devi
        if (sc->quirks & SONY_LED_SUPPORT)
                sony_leds_remove(hdev);
  
 +      if (sc->worker_initialized)
 +              cancel_work_sync(&sc->state_worker);
+       if (sc->quirks & SONY_BATTERY_SUPPORT) {
+               hid_hw_close(hdev);
+               sony_battery_remove(sc);
+       }
+       if (sc->worker_initialized)
+               cancel_work_sync(&sc->state_worker);
+       sony_remove_dev_list(sc);
  
        hid_hw_stop(hdev);
  }
Simple merge
Simple merge
Simple merge