From: Jiri Kosina Date: Tue, 30 Apr 2013 08:12:44 +0000 (+0200) Subject: Merge branches 'for-3.10/appleir', 'for-3.10/hid-debug', 'for-3.10/hid-driver-transpo... X-Git-Url: https://git.stricted.de/?p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git;a=commitdiff_plain;h=4f5a81042909fed6977881f22c024aa3582cfcca Merge branches 'for-3.10/appleir', 'for-3.10/hid-debug', 'for-3.10/hid-driver-transport-cleanups', 'for-3.10/i2c-hid' and 'for-3.10/logitech' into for-linus --- 4f5a81042909fed6977881f22c024aa3582cfcca diff --cc drivers/hid/Kconfig index 7f5e0aa5fe5a,5f07d85c4189,d1dcfc78bed2,5f07d85c4189..15187b85895d --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@@@@ -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. diff --cc drivers/hid/hid-core.c index bf434a0f813f,e7765ede339e,b76eb9eb6ff1,680068c0c46a..734b3d44dae5 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@@@@ -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; } diff --cc drivers/hid/hid-logitech-dj.c index 8758f38c948c,8758f38c948c,d9043434ddb3,199b78c8a5f3..5207591a598c --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@@@@ -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)