浏览代码

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>
Jeremy Fitzhardinge 13 年之前
父节点
当前提交
b3ca3839f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/hid/hid-input.c

+ 1 - 1
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;