android_kernel_xiaomi_sm8350/drivers/usb/input
Anssi Hannula be8209753b HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage
The commit 4916b3a57f introduced a
hid regression between 2.6.19 and 2.6.20-rc1. The device put in
input_dev->cdev is now of type usb_device instead of usb_interface.

Before:
> # readlink -f /sys/class/input/input6/event4/device
> /sys/devices/pci0000:00/0000:00:10.0/usb2/2-1/2-1:1.1
After:
> # readlink -f /sys/class/input/input3/event3/device
> /sys/devices/pci0000:00/0000:00:10.0/usb1/1-1

This causes breakage:
> # udevinfo -q all -n /dev/input/event3
> P: /class/input/input3/event3
> N: input/event3
> S: input/by-path/pci-1-1--event-
> E: ID_SERIAL=noserial
> E: ID_PATH=pci-1-1-

No ID_MODEL, ID_VENDOR, ID_REVISION, ID_TYPE etc etc.

Fix this by assigning the intf->dev into hid->dev, and fixing
all the users.

Signed-off-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2007-01-21 22:18:01 +01:00
..
acecad.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
aiptek.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
appletouch.c Input: appletouch - use canonical names in USB IDs 2006-11-17 01:06:25 -05:00
ati_remote2.c usb: ati_remote2 free urb cleanup 2006-12-01 14:23:33 -08:00
ati_remote.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
hid-core.c HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage 2007-01-21 22:18:01 +01:00
hid-ff.c HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage 2007-01-21 22:18:01 +01:00
hid-lgff.c [PATCH] Generic HID layer - USB API 2006-12-08 10:43:14 -08:00
hid-pidff.c [PATCH] Generic HID layer - USB API 2006-12-08 10:43:14 -08:00
hid-tmff.c [PATCH] Generic HID layer - USB API 2006-12-08 10:43:14 -08:00
hid-zpff.c [PATCH] Generic HID layer - USB API 2006-12-08 10:43:14 -08:00
hiddev.c HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage 2007-01-21 22:18:01 +01:00
itmtouch.c
kbtab.c
Kconfig HID: fix some ARM builds due to HID brokenness - make USB_HID depend on INPUT 2007-01-21 22:17:47 +01:00
keyspan_remote.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
Makefile [PATCH] Generic HID layer - build 2006-12-08 10:43:20 -08:00
map_to_7segment.h
mtouchusb.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
powermate.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
touchkitusb.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
usbhid.h HID: put usb_interface instead of usb_device into hid->dev to fix udevinfo breakage 2007-01-21 22:18:01 +01:00
usbkbd.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
usbmouse.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
usbtouchscreen.c [PATCH] slab: remove SLAB_KERNEL 2006-12-07 08:39:24 -08:00
wacom_sys.c USB: fix Wacom Intuos3 4x6 bugs 2006-12-20 10:14:26 -08:00
wacom_wac.c USB: fix Wacom Intuos3 4x6 bugs 2006-12-20 10:14:26 -08:00
wacom_wac.h
wacom.h USB: make drivers/usb/input/wacom_sys.c:wacom_sys_irq() static 2006-12-01 14:23:30 -08:00
xpad.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
yealink.c [PATCH] slab: remove SLAB_ATOMIC 2006-12-07 08:39:24 -08:00
yealink.h