HID: ignore absolute values which don't fit between logical min and max
authorJiri Kosina <jkosina@suse.cz>
Fri, 28 Oct 2011 16:15:02 +0000 (18:15 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 16 Nov 2011 14:00:31 +0000 (15:00 +0100)
commit6da7066906e977d42104a859c490f5f9a300488c
treea3dd189b80691d307840697da5cc68e6a75edfff
parente46e927b9b7e8d95526e69322855243882b7e1a3
HID: ignore absolute values which don't fit between logical min and max

Linux should ignore values outside logical min/max range, as they are not
meaningful. This is what at least some of other OSes do, and it also makes
sense (currently the value gets misinterpreted larger up the stack).

Reported-by: Denilson Figueiredo de Sá <denilsonsa@gmail.com>
Tested-by: Denilson Figueiredo de Sá <denilsonsa@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c