Skip to content

Commit 42e5ed0

Browse files
sumeetpawnikarrafaeljw
authored andcommitted
ACPI: DPTF: Add support for high frequency impedance notification
Add high frequency impedance notification support under DPTF. This returns high frequency impedance value that can be obtained from battery fuel gauge whenever there is change over a threshold. Also, corrected the typo from IMPEDANCED_CHNGED to IMPEDANCE_CHANGED. Signed-off-by: Sumeet Pawnikar <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 290a207 commit 42e5ed0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/acpi/dptf/dptf_power.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static const struct attribute_group dptf_battery_attribute_group = {
115115
#define POWER_STATE_CHANGED 0x81
116116
#define STEADY_STATE_POWER_CHANGED 0x83
117117
#define POWER_PROP_CHANGE_EVENT 0x84
118-
#define IMPEDANCED_CHNGED 0x85
118+
#define IMPEDANCE_CHANGED 0x85
119119
#define VOLTAGE_CURRENT_CHANGED 0x86
120120

121121
static long long dptf_participant_type(acpi_handle handle)
@@ -148,6 +148,9 @@ static void dptf_power_notify(acpi_handle handle, u32 event, void *data)
148148
case STEADY_STATE_POWER_CHANGED:
149149
attr = "max_steady_state_power_mw";
150150
break;
151+
case IMPEDANCE_CHANGED:
152+
attr = "high_freq_impedance_mohm";
153+
break;
151154
case VOLTAGE_CURRENT_CHANGED:
152155
attr = "no_load_voltage_mv";
153156
break;

0 commit comments

Comments
 (0)