summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2022-06-21 11:26:00 +0200
committerBenjamin Berg <bberg@redhat.com>2022-06-21 11:26:00 +0200
commit7e73f5a24647c9664552d48ccf68599adb427d73 (patch)
tree010527ff29585d39788bdb2e39a57d9096f48c2b
parent8ec7362e93a8ac942d77b9766b4103d6ce55da36 (diff)
downloadupower-7e73f5a24647c9664552d48ccf68599adb427d73.tar.gz
supply-battery: Stop reading voltage_present
It appears this is an old property name. The string does not appear anywhere in the Linux kernel as of 5.18.0.
-rw-r--r--src/linux/up-device-supply-battery.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/linux/up-device-supply-battery.c b/src/linux/up-device-supply-battery.c
index 195ae53..afd59ff 100644
--- a/src/linux/up-device-supply-battery.c
+++ b/src/linux/up-device-supply-battery.c
@@ -80,13 +80,6 @@ up_device_supply_battery_get_design_voltage (UpDeviceSupplyBattery *self,
return voltage;
}
- /* current voltage */
- voltage = g_udev_device_get_sysfs_attr_as_double_uncached (native, "voltage_present") / 1000000.0;
- if (voltage > 1.00f) {
- g_debug ("using present voltage");
- return voltage;
- }
-
/* current voltage, alternate form */
voltage = g_udev_device_get_sysfs_attr_as_double_uncached (native, "voltage_now") / 1000000.0;
if (voltage > 1.00f) {