ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name
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
@@ -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
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 theDPTF_POWER_SHOWmacro,DEVICE_ATTR_ROdeclaration, and attribute
array entry for consistent naming.
This is unfortunate, but ABI change.
Thanks,
Srinivas
Quoted 37 lines
Signed-off-by Kaushlendra Kumar <[email protected]>---
drivers/acpi/dptf/dptf_power.c | 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)drivers/acpi/dptf/dptf_power.c +1
-1@@ -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 );
staticDEVICE_ATTR_RO(max_platform_power_mw);
staticDEVICE_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);
staticssize_tprochot_confirm_store(struct device *dev, structdevice_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
};