Merge branches 'for-3.10/appleir', 'for-3.10/hid-debug', 'for-3.10/hid-driver-transpo...
authorJiri Kosina <jkosina@suse.cz>
Tue, 30 Apr 2013 08:12:44 +0000 (10:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 30 Apr 2013 08:12:44 +0000 (10:12 +0200)
1  2  3  4 
drivers/hid/Kconfig
drivers/hid/hid-apple.c
drivers/hid/hid-core.c
drivers/hid/hid-lg4ff.c
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-magicmouse.c
drivers/hid/hid-multitouch.c
include/linux/hid.h

@@@@@ -122,20 -122,9 -122,9 -122,9 +122,20 @@@@@ config HID_APPL
        Say Y here if you want support for keyboards of Apple iBooks, PowerBooks,
        MacBooks, MacBook Pros and Apple Aluminum.
    
 +++config HID_APPLEIR
 +++    tristate "Apple infrared receiver"
 +++    depends on (USB_HID)
 +++    ---help---
 +++    Support for Apple infrared remote control. All the Apple computers from
 +++      2005 onwards include such a port, except the unibody Macbook (2009),
 +++      and Mac Pros. This receiver is also used in the Apple TV set-top box
 +++      prior to the 2010 model.
 +++
 +++    Say Y here if you want support for Apple infrared remote control.
 +++
    config HID_AUREAL
        tristate "Aureal"
-- -    depends on USB_HID
++ +    depends on HID
        ---help---
        Support for Aureal Cy se W-01RN Remote Controller and other Aureal derived remotes.
    
Simple merge
@@@@@ -2343,7 -2319,8 -2328,7 -2345,8 +2338,9 @@@@@ struct hid_device *hid_allocate_device(
    
        init_waitqueue_head(&hdev->debug_wait);
        INIT_LIST_HEAD(&hdev->debug_list);
+ ++    mutex_init(&hdev->debug_list_lock);
        sema_init(&hdev->driver_lock, 1);
+++     sema_init(&hdev->driver_input_lock, 1);
    
        return hdev;
    }
Simple merge
@@@@@ -472,12 -472,12 -471,12 -427,11 +431,12 @@@@@ static int logi_dj_recv_send_report(str
                return -ENODEV;
        }
    
   -    sent_bytes = hdev->hid_output_raw_report(hdev, (u8 *) dj_report,
   -                                             sizeof(struct dj_report),
   -                                             HID_OUTPUT_REPORT);
   +    for (i = 0; i < report->field[0]->report_count; i++)
   +            report->field[0]->value[i] = data[i];
   +
--      usbhid_submit_report(hdev, report, USB_DIR_OUT);
++ +    hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
    
   -    return (sent_bytes < 0) ? sent_bytes : 0;
   +    return 0;
    }
    
    static int logi_dj_recv_query_paired_devices(struct dj_receiver_dev *djrcv_dev)
Simple merge
Simple merge
Simple merge