Commit b3ca3839 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge
Browse files

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: default avatarJeremy Fitzhardinge <jeremy@goop.org>
parent 2f2e3f6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -368,7 +368,7 @@ static bool hidinput_setup_battery(struct hid_device *dev, unsigned report_type,
	if (battery->name == NULL)
	if (battery->name == NULL)
		goto out;
		goto out;


	battery->type = POWER_SUPPLY_TYPE_USB;
	battery->type = POWER_SUPPLY_TYPE_BATTERY;
	battery->properties = hidinput_battery_props;
	battery->properties = hidinput_battery_props;
	battery->num_properties = ARRAY_SIZE(hidinput_battery_props);
	battery->num_properties = ARRAY_SIZE(hidinput_battery_props);
	battery->use_for_apm = 0;
	battery->use_for_apm = 0;