android_kernel_xiaomi_sm8350/drivers/hid
Guillaume Chazarain 8fe294caf8 HID: fix hiddev's use of usb_find_interface
My macbook infrared remote control was broken by commit
bd25f4dd69 ("HID: hiddev: use
usb_find_interface, get rid of BKL").

This device appears in dmesg as:
apple 0003:05AC:8242.0001: hiddev0,hidraw0: USB HID v1.11 Device
[Apple Computer, Inc. IR Receiver] on usb-0000:00:1d.2-1/input0

It stopped working as lircd was getting ENODEV when opening /dev/usb/hiddev0.

AFAICS hiddev_driver is a dummy driver so usb_find_interface(&hiddev_driver)
does not find anything.

The device is associated with the usbhid driver, so let's do
usb_find_interface(&hid_driver) instead.

$ ls -l /sys/devices/pci0000:00/0000:00:1d.2/usb7/7-1/7-1:1.0/usb/hiddev0/device/driver
lrwxrwxrwx 1 root root 0 2010-09-12 16:28 /sys/devices/pci0000:00/0000:00:1d.2/usb7/7-1/7-1:1.0/usb/hiddev0/device/driver -> ../../../../../../bus/usb/drivers/usbhid

Signed-off-by: Guillaume Chazarain <guichaz@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2010-09-14 10:58:42 +02:00
..
usbhid HID: fix hiddev's use of usb_find_interface 2010-09-14 10:58:42 +02:00
hid-3m-pct.c Merge branch 'upstream' into for-linus 2010-05-19 14:04:49 +02:00
hid-a4tech.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-apple.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-axff.c HID: add ACRUX game controller force feedback support 2010-07-19 12:13:23 +02:00
hid-belkin.c
hid-cando.c HID: Support for the 11.6" Cando panel 2010-04-23 00:19:08 +02:00
hid-cherry.c HID: add support for cymotion master solar keyboard 2010-04-08 13:40:52 +02:00
hid-chicony.c
hid-core.c HID: fixup blacklist entry for Asus T91MT 2010-09-08 14:31:47 +02:00
hid-cypress.c
hid-debug.c HID: eliminate a double lock in debug code 2010-06-21 13:41:54 +02:00
hid-drff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-egalax.c USB HID: Add ID for eGalax Multitouch used in JooJoo tablet 2010-08-16 16:01:28 +02:00
hid-elecom.c HID: add proper support for Elecom BM084 bluetooth mouse 2010-06-28 19:02:47 +02:00
hid-ezkey.c
hid-gaff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-gyration.c HID: Add the GYR4101US USB ID to hid-gyration 2010-05-24 19:07:57 +02:00
hid-ids.h HID: add device ID for new Asus Multitouch Controller 2010-09-08 14:30:35 +02:00
hid-input.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2010-08-04 15:23:49 -07:00
hid-kensington.c
hid-kye.c
hid-lg2ff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-lg3ff.c HID: add driver for the Logitech Flight System G940 2010-01-13 00:26:31 +01:00
hid-lg.c HID: add mappings for a few keys found on Logitech MX3200 2010-04-19 13:26:28 +02:00
hid-lg.h Merge branch 'master' into upstream 2010-02-02 23:10:39 +01:00
hid-lgff.c HID: add driver for the Logitech Flight System G940 2010-01-13 00:26:31 +01:00
hid-magicmouse.c HID: magicmouse: Correct parsing of large X and Y motions. 2010-07-11 23:06:14 +02:00
hid-microsoft.c
hid-monterey.c
hid-mosart.c HID: add device ID for new Asus Multitouch Controller 2010-09-08 14:30:35 +02:00
hid-ntrig.c HID: ntrig: add support for new firwmare versions 2010-06-21 13:41:13 +02:00
hid-ortek.c HID: add support for Ortek WKB-2000 2010-01-26 01:57:35 +01:00
hid-petalynx.c
hid-picolcd.c HID: picolcd: correct ordering of framebuffer freeing 2010-08-06 14:53:10 +02:00
hid-pl.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-prodikeys.c HID: Prodikeys PC-MIDI HID Driver 2010-05-12 15:18:59 +02:00
hid-quanta.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-roccat-kone.c HID: roccat: remove obsolete kone_abi_version sysfs attribute 2010-06-21 15:20:35 +02:00
hid-roccat-kone.h HID: roccat: remove obsolete kone_abi_version sysfs attribute 2010-06-21 15:20:35 +02:00
hid-roccat.c HID: roccat: introduce missing kfree 2010-06-02 11:08:42 +02:00
hid-roccat.h HID: roccat: fix whitespace warning from checkpatch.pl 2010-05-31 13:53:21 +02:00
hid-samsung.c HID: hid-samsung: remove redundant key mappings 2010-05-18 10:41:19 +02:00
hid-sjoy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-sony.c HID: sony: fix sony_set_operational_bt 2010-05-03 17:19:03 +02:00
hid-stantum.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-sunplus.c
hid-tmff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-topseed.c HID: add support for another BTC Emprex remote control 2010-08-30 15:43:25 +02:00
hid-twinhan.c
hid-wacom.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2010-08-10 15:08:02 -07:00
hid-zpff.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hid-zydacron.c HID: add omitted hid-zydacron.c file 2010-05-17 20:58:47 +02:00
hidraw.c HID: remove unused variable from hidraw_read 2010-05-25 09:47:19 +02:00
Kconfig Merge branch 'acrux' into for-linus 2010-08-04 15:29:35 +02:00
Makefile Merge branch 'acrux' into for-linus 2010-08-04 15:29:35 +02:00