]> git.baikalelectronics.ru Git - kernel.git/commit
HID: input: Ignore battery reported by Symbol DS4308
authorBenson Leung <bleung@chromium.org>
Thu, 8 Nov 2018 23:59:21 +0000 (15:59 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 12 Nov 2018 09:08:46 +0000 (10:08 +0100)
commited0b33c52bda1b994f10a535607e794400e048ee
tree04761a679bc1eae27440c922e5465b3a3d3a5776
parenta1074026f99db6cb385119f32ba1b142ce5e2059
HID: input: Ignore battery reported by Symbol DS4308

The Motorola/Zebra Symbol DS4308-HD is a handheld USB barcode scanner
which does not have a battery, but reports one anyway that always has
capacity 2.

Let's apply the IGNORE quirk to prevent it from being treated like a
power supply so that userspaces don't get confused that this
accessory is almost out of power and warn the user that they need to charge
their wired barcode scanner.

Reported here: https://bugs.chromium.org/p/chromium/issues/detail?id=804720

Signed-off-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c