summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-core.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2011-12-02 23:12:36 +0400
committerJeremy Fitzhardinge <jeremy@goop.org>2012-01-08 11:30:37 +0400
commitbbc21cfd55858d7c3e55bfaa91fa934b0b13ad4d (patch)
tree8b0495e337bd64c8677c218d01bb3cc2e6211663 /drivers/hid/hid-core.c
parentef5251993c3597a88b893fe22ee830092dff35f9 (diff)
downloadlinux-bbc21cfd55858d7c3e55bfaa91fa934b0b13ad4d.tar.xz
hid-input/battery: add quirks for battery
Some devices always report percentage, despite having 0/255 as their min/max, so add a quirk for them. Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Diffstat (limited to 'drivers/hid/hid-core.c')
-rw-r--r--drivers/hid/hid-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index c0ef2b49a00c..aa4a30b7c6af 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1157,7 +1157,7 @@ static bool hid_match_one_id(struct hid_device *hdev,
(id->product == HID_ANY_ID || id->product == hdev->product);
}
-static const struct hid_device_id *hid_match_id(struct hid_device *hdev,
+const struct hid_device_id *hid_match_id(struct hid_device *hdev,
const struct hid_device_id *id)
{
for (; id->bus; id++)