]> Pileus Git - ~andy/linux/commit
HID: multitouch: do not use pointers towards hid-core
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Wed, 6 Feb 2013 11:10:47 +0000 (12:10 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 7 Feb 2013 14:13:14 +0000 (15:13 +0100)
commit7e3cc447ff8906558619b1ecc46e4bd776a4f3a6
treefb85c661a61af1354982ae83036dccf6d81b6d0b
parentdc3e1d8052548f5b46288a1d43c93684f7d64804
HID: multitouch: do not use pointers towards hid-core

The previous implementation registered a pointer towards hid-core
to the value of contact count. This is not safe and may be difficult
to debug if hid-core ever changes its implementation.
The use of regular indexes is a better choice.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c