Skip to content

Commit

Permalink
hid-input/battery: power-supply type really *is* a battery
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeremy Fitzhardinge committed Jan 8, 2012
1 parent 2f2e3f6 commit b3ca383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3ca383

Please sign in to comment.