summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2011-12-02 19:06:10 -0800
committerJeremy Fitzhardinge <jeremy@goop.org>2012-01-08 18:30:39 +1100
commitb3ca3839f344aa469e6f53c8bbb633e5ab9b96c8 (patch)
treeecc3918a7042e8c87de6490014787216df955820 /drivers/hid/hid-input.c
parent2f2e3f6d7a24e7fceb0fef514767025cddb64dc2 (diff)
downloadlinux-b3ca3839f344aa469e6f53c8bbb633e5ab9b96c8.tar.gz
linux-b3ca3839f344aa469e6f53c8bbb633e5ab9b96c8.tar.bz2
linux-b3ca3839f344aa469e6f53c8bbb633e5ab9b96c8.zip
hid-input/battery: power-supply type really *is* a battery
It just isn't a battery which is powering the computer. upower needs a more nuanced understanding of this. Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 771ff5df5742..ceade58b8027 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -368,7 +368,7 @@ static bool hidinput_setup_battery(struct hid_device *dev, unsigned report_type,
if (battery->name == NULL)
goto out;
- battery->type = POWER_SUPPLY_TYPE_USB;
+ battery->type = POWER_SUPPLY_TYPE_BATTERY;
battery->properties = hidinput_battery_props;
battery->num_properties = ARRAY_SIZE(hidinput_battery_props);
battery->use_for_apm = 0;