HID: input: fix assignment of .value
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 18 Apr 2019 07:47:41 +0000 (09:47 +0200)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 24 Apr 2019 13:25:29 +0000 (15:25 +0200)
commit39b3c3a5fbc5d744114e497d35bf0c12f798c134
tree01b61984e0dfb98020e7cebc2b8910d91fca9f1a
parentd43c17ead879ba7c076dc2f5fd80cd76047c9ff4
HID: input: fix assignment of .value

The value field is actually an array of .maxfield. We should assign the
correct number to the correct usage.

Not that we never encounter a device that requires this ATM, but better
have the proper code path.

Fixes: 2dc702c991e377 ("HID: input: use the Resolution Multiplier for
       high-resolution scrolling")
Cc: stable@vger.kernel.org # v5.0+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-input.c