aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-core.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2011-12-02 14:12:36 -0500
committerJeremy Fitzhardinge <jeremy@goop.org>2012-01-08 02:30:37 -0500
commitbbc21cfd55858d7c3e55bfaa91fa934b0b13ad4d (patch)
tree8b0495e337bd64c8677c218d01bb3cc2e6211663 /drivers/hid/hid-core.c
parentef5251993c3597a88b893fe22ee830092dff35f9 (diff)
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,
1157 (id->product == HID_ANY_ID || id->product == hdev->product); 1157 (id->product == HID_ANY_ID || id->product == hdev->product);
1158} 1158}
1159 1159
1160static const struct hid_device_id *hid_match_id(struct hid_device *hdev, 1160const struct hid_device_id *hid_match_id(struct hid_device *hdev,
1161 const struct hid_device_id *id) 1161 const struct hid_device_id *id)
1162{ 1162{
1163 for (; id->bus; id++) 1163 for (; id->bus; id++)