android_kernel_xiaomi_sm8350/drivers/hid/usbhid
Li Zefan 3ba5619f06 HID: fix a potential bug in pointer casting
Don't directly cast list_head * to foo *, this works only when list
is the first member of struct foo, and we should not make the assumption
how members are ordered in the structure.

i.e. struct *f = (struct *f)pos will work if:
	struct foo {
		struct list_head list;
		int i;
	};

but will fail if:
	struct foo {
		int i;
		struct list_head list;
	}

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2008-01-28 14:51:19 +01:00
..
hid-core.c Merge branch 'hidraw' into for-linus 2007-10-14 14:47:56 +02:00
hid-ff.c changed email 2007-10-20 00:47:32 +02:00
hid-lgff.c
hid-pidff.c
hid-plff.c
hid-quirks.c HID: Implement horizontal wheel handling for A4 Tech X5-005D 2008-01-28 14:51:19 +01:00
hid-tmff.c HID: fix a potential bug in pointer casting 2008-01-28 14:51:19 +01:00
hid-zpff.c
hiddev.c HID: hiddev - fix compiler warning 2007-10-31 13:30:34 +01:00
Kconfig HID: Add support for Apple aluminum USB keyboards. 2008-01-28 14:51:19 +01:00
Makefile
usbhid.h
usbkbd.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00
usbmouse.c get rid of input BIT* duplicate defines 2007-10-19 11:53:42 -07:00