]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSultan Alsawaf <sultan.alsawaf@canonical.com>
Wed, 24 Jul 2019 15:45:03 +0000 (09:45 -0600)
commitab3027eff7aba751e80d933369af9b7ed15e7bd2
tree69ea47ee6b69529b738f0badedeee062263587ba
parent44a5b964e5551b3cbce3c6a433b5e0223a209868
HID: input: Ignore battery reported by Symbol DS4308

BugLink: https://bugs.launchpad.net/bugs/1837161
[ Upstream commit 0fd791841a6d67af1155a9c3de54dea51220721e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/hid/hid-ids.h
drivers/hid/hid-input.c