* [PATCH] ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name
@ 2025-10-06 4:31 Kaushlendra Kumar
2025-10-17 17:15 ` srinivas pandruvada
0 siblings, 1 reply; 2+ messages in thread
From: Kaushlendra Kumar @ 2025-10-06 4:31 UTC (permalink / raw)
To: rafael, rui.zhang, srinivas.pandruvada, lenb
Cc: linux-acpi, 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.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
---
drivers/acpi/dptf/dptf_power.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/acpi/dptf/dptf_power.c b/drivers/acpi/dptf/dptf_power.c
index 776914f31b9e..a3b25d9065c2 100644
--- a/drivers/acpi/dptf/dptf_power.c
+++ b/drivers/acpi/dptf/dptf_power.c
@@ -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
};
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name
2025-10-06 4:31 [PATCH] ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name Kaushlendra Kumar
@ 2025-10-17 17:15 ` srinivas pandruvada
0 siblings, 0 replies; 2+ messages in thread
From: srinivas pandruvada @ 2025-10-17 17:15 UTC (permalink / raw)
To: Kaushlendra Kumar, rafael, rui.zhang, lenb; +Cc: linux-acpi
On Mon, 2025-10-06 at 10:01 +0530, Kaushlendra Kumar wrote:
> 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
> Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
> ---
> drivers/acpi/dptf/dptf_power.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/acpi/dptf/dptf_power.c
> b/drivers/acpi/dptf/dptf_power.c
> index 776914f31b9e..a3b25d9065c2 100644
> --- a/drivers/acpi/dptf/dptf_power.c
> +++ b/drivers/acpi/dptf/dptf_power.c
> @@ -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
> };
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-17 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-06 4:31 [PATCH] ACPI / DPTF: Fix typo in current_discharge_capability_ma attribute name Kaushlendra Kumar
2025-10-17 17:15 ` srinivas pandruvada
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).