Skip to contentSkip to conversation

ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name

PATCH In review Kaushlendra Kumar 2 participants 2 messages Oct 6, 2025 – Oct 17, 2025 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name

Fix typo "capbility" to "capability" in current_discharge_capability_ma sysfs attribute name across all references. This corrects the spelling in the DPTF_POWER_SHOW macro, DEVICE_ATTR_RO declaration, and attribute array entry for consistent naming.

---
 drivers/acpi/dptf/dptf_power.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/dptf/dptf_power.c +3 -3
index 776914f31b9e..a3b25d9065c2 100644
@@ -48,7 +48,7 @@ DPTF_POWER_SHOW(rest_of_platform_power_mw, PROP)
 DPTF_POWER_SHOW(max_steady_state_power_mw, PBSS)
 DPTF_POWER_SHOW(high_freq_impedance_mohm, RBHF)
 DPTF_POWER_SHOW(no_load_voltage_mv, VBNL)
-DPTF_POWER_SHOW(current_discharge_capbility_ma, CMPP);
+DPTF_POWER_SHOW(current_discharge_capability_ma, CMPP);
 
 static DEVICE_ATTR_RO(max_platform_power_mw);
 static DEVICE_ATTR_RO(platform_power_source);
@@ -59,7 +59,7 @@ static DEVICE_ATTR_RO(rest_of_platform_power_mw);
 static DEVICE_ATTR_RO(max_steady_state_power_mw);
 static DEVICE_ATTR_RO(high_freq_impedance_mohm);
 static DEVICE_ATTR_RO(no_load_voltage_mv);
-static DEVICE_ATTR_RO(current_discharge_capbility_ma);
+static DEVICE_ATTR_RO(current_discharge_capability_ma);
 
 static ssize_t prochot_confirm_store(struct device *dev,
 				     struct device_attribute *attr,
@@ -102,7 +102,7 @@ static struct attribute *dptf_battery_attrs[] = {
 	&dev_attr_max_steady_state_power_mw.attr,
 	&dev_attr_high_freq_impedance_mohm.attr,
 	&dev_attr_no_load_voltage_mv.attr,
-	&dev_attr_current_discharge_capbility_ma.attr,
+	&dev_attr_current_discharge_capability_ma.attr,
 	NULL
 };
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 8 lines · Kaushlendra Kumar

Fix typo "capbility" to "capability" in current_discharge_capability_ma
sysfs attribute name across all references. This corrects the spelling
in the DPTF_POWER_SHOW macro, DEVICE_ATTR_RO declaration, and attribute
array entry for consistent naming.

This is unfortunate, but ABI change.

Thanks,
Srinivas

Quoted 37 lines

---
 drivers/acpi/dptf/dptf_power.c | 6 +++---

 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/acpi/dptf/dptf_power.c +1 -1
index 776914f31b9e..a3b25d9065c2 100644
@@ -48,7 +48,7 @@ DPTF_POWER_SHOW(rest_of_platform_power_mw, PROP)
  DPTF_POWER_SHOW(max_steady_state_power_mw, PBSS)
  DPTF_POWER_SHOW(high_freq_impedance_mohm, RBHF)
  DPTF_POWER_SHOW(no_load_voltage_mv, VBNL)
-DPTF_POWER_SHOW(current_discharge_capbility_ma, CMPP);
+DPTF_POWER_SHOW(current_discharge_capability_ma, CMPP);


 static DEVICE_ATTR_RO(max_platform_power_mw);
 static DEVICE_ATTR_RO(platform_power_source);

drivers/acpi/dptf/dptf_power.c +1 -1
@@ -59,7 +59,7 @@ static DEVICE_ATTR_RO(rest_of_platform_power_mw);
  static DEVICE_ATTR_RO(max_steady_state_power_mw);
  static DEVICE_ATTR_RO(high_freq_impedance_mohm);
  static DEVICE_ATTR_RO(no_load_voltage_mv);
-static DEVICE_ATTR_RO(current_discharge_capbility_ma);
+static DEVICE_ATTR_RO(current_discharge_capability_ma);


 static ssize_t prochot_confirm_store(struct device *dev, struct device_attribute *attr,

drivers/acpi/dptf/dptf_power.c +1 -1
@@ -102,7 +102,7 @@ static struct attribute *dptf_battery_attrs[] = {
  	&dev_attr_max_steady_state_power_mw.attr,
  	&dev_attr_high_freq_impedance_mohm.attr,
  	&dev_attr_no_load_voltage_mv.attr,
-	&dev_attr_current_discharge_capbility_ma.attr,
+	&dev_attr_current_discharge_capability_ma.attr,

  NULL
 };