HID: wiimote: discard invalid EXT data reports
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 26 May 2013 20:55:03 +0000 (22:55 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 3 Jun 2013 09:07:07 +0000 (11:07 +0200)
commit876727eabf3f224beb5f9b3bbcec2fb891faa89d
treed53ca742c2ac7c1af4ecbf48250d794a77885c01
parentee286c2e80547d87ed4e55c00709783aa2261848
HID: wiimote: discard invalid EXT data reports

If an extension device isn't initialized properly, or during hardware
initialization, a device might send extension data which is all 0xff.
This is ambigious because this is also a valid normal data report. But
it is impossible, under normal conditions, to trigger valid reports with
all 0xff. Hence, we can safely ignore them.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-wiimote-core.c