Skip to content

Commit 7222a8a

Browse files
committed
Merge branches 'acpi-scan', 'acpi-misc', 'acpi-button' and 'acpi-dptf'
* acpi-scan: ACPI: scan: Fix acpi_dma_configure_id() kerneldoc name * acpi-misc: ACPI: GED: fix -Wformat ACPI: Fix whitespace inconsistencies * acpi-button: ACPI: button: Add DMI quirk for Medion Akoya E2228T * acpi-dptf: ACPI: DPTF: Support Alder Lake
5 parents 8d936bb + c1e9735 + 9debfb8 + 7daaa06 + 38748bc commit 7222a8a

22 files changed

Lines changed: 64 additions & 43 deletions

drivers/acpi/acpi_video.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ acpi_video_bqc_value_to_level(struct acpi_video_device *device,
578578
ACPI_VIDEO_FIRST_LEVEL - 1 - bqc_value;
579579

580580
level = device->brightness->levels[bqc_value +
581-
ACPI_VIDEO_FIRST_LEVEL];
581+
ACPI_VIDEO_FIRST_LEVEL];
582582
} else {
583583
level = bqc_value;
584584
}
@@ -990,8 +990,8 @@ acpi_video_init_brightness(struct acpi_video_device *device)
990990
goto out_free_levels;
991991

992992
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
993-
"found %d brightness levels\n",
994-
br->count - ACPI_VIDEO_FIRST_LEVEL));
993+
"found %d brightness levels\n",
994+
br->count - ACPI_VIDEO_FIRST_LEVEL));
995995
return 0;
996996

997997
out_free_levels:

drivers/acpi/battery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static int acpi_battery_update(struct acpi_battery *battery, bool resume)
987987
*/
988988
if ((battery->state & ACPI_BATTERY_STATE_CRITICAL) ||
989989
(test_bit(ACPI_BATTERY_ALARM_PRESENT, &battery->flags) &&
990-
(battery->capacity_now <= battery->alarm)))
990+
(battery->capacity_now <= battery->alarm)))
991991
acpi_pm_wakeup_event(&battery->device->dev);
992992

993993
return result;

drivers/acpi/button.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,18 @@ static const struct dmi_system_id dmi_lid_quirks[] = {
8989
*/
9090
.matches = {
9191
DMI_MATCH(DMI_SYS_VENDOR, "MEDION"),
92-
DMI_MATCH(DMI_PRODUCT_NAME, "E2215T MD60198"),
92+
DMI_MATCH(DMI_PRODUCT_NAME, "E2215T"),
93+
},
94+
.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
95+
},
96+
{
97+
/*
98+
* Medion Akoya E2228T, notification of the LID device only
99+
* happens on close, not on open and _LID always returns closed.
100+
*/
101+
.matches = {
102+
DMI_MATCH(DMI_SYS_VENDOR, "MEDION"),
103+
DMI_MATCH(DMI_PRODUCT_NAME, "E2228T"),
93104
},
94105
.driver_data = (void *)(long)ACPI_BUTTON_LID_INIT_OPEN,
95106
},

drivers/acpi/dptf/dptf_pch_fivr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ static int pch_fivr_remove(struct platform_device *pdev)
106106

107107
static const struct acpi_device_id pch_fivr_device_ids[] = {
108108
{"INTC1045", 0},
109+
{"INTC1049", 0},
109110
{"", 0},
110111
};
111112
MODULE_DEVICE_TABLE(acpi, pch_fivr_device_ids);

drivers/acpi/dptf/dptf_power.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ static const struct acpi_device_id int3407_device_ids[] = {
229229
{"INT3532", 0},
230230
{"INTC1047", 0},
231231
{"INTC1050", 0},
232+
{"INTC1060", 0},
233+
{"INTC1061", 0},
232234
{"", 0},
233235
};
234236
MODULE_DEVICE_TABLE(acpi, int3407_device_ids);

drivers/acpi/dptf/int340x_thermal.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ static const struct acpi_device_id int340x_thermal_device_ids[] = {
2525
{"INT340A"},
2626
{"INT340B"},
2727
{"INTC1040"},
28+
{"INTC1041"},
2829
{"INTC1043"},
2930
{"INTC1044"},
3031
{"INTC1045"},
32+
{"INTC1046"},
3133
{"INTC1047"},
34+
{"INTC1048"},
35+
{"INTC1049"},
36+
{"INTC1060"},
37+
{"INTC1061"},
3238
{""},
3339
};
3440

drivers/acpi/event.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int acpi_notifier_call_chain(struct acpi_device *dev, u32 type, u32 data)
3131
event.type = type;
3232
event.data = data;
3333
return (blocking_notifier_call_chain(&acpi_chain_head, 0, (void *)&event)
34-
== NOTIFY_BAD) ? -EINVAL : 0;
34+
== NOTIFY_BAD) ? -EINVAL : 0;
3535
}
3636
EXPORT_SYMBOL(acpi_notifier_call_chain);
3737

drivers/acpi/evged.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static acpi_status acpi_ged_request_interrupt(struct acpi_resource *ares,
101101

102102
switch (gsi) {
103103
case 0 ... 255:
104-
sprintf(ev_name, "_%c%02hhX",
104+
sprintf(ev_name, "_%c%02X",
105105
trigger == ACPI_EDGE_SENSITIVE ? 'E' : 'L', gsi);
106106

107107
if (ACPI_SUCCESS(acpi_get_handle(handle, ev_name, &evt_handle)))

drivers/acpi/fan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ static const struct acpi_device_id fan_device_ids[] = {
2727
{"PNP0C0B", 0},
2828
{"INT3404", 0},
2929
{"INTC1044", 0},
30+
{"INTC1048", 0},
3031
{"", 0},
3132
};
3233
MODULE_DEVICE_TABLE(acpi, fan_device_ids);

drivers/acpi/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ int acpi_add_power_resource(acpi_handle handle);
134134
void acpi_power_add_remove_device(struct acpi_device *adev, bool add);
135135
int acpi_power_wakeup_list_init(struct list_head *list, int *system_level);
136136
int acpi_device_sleep_wake(struct acpi_device *dev,
137-
int enable, int sleep_state, int dev_state);
137+
int enable, int sleep_state, int dev_state);
138138
int acpi_power_get_inferred_state(struct acpi_device *device, int *state);
139139
int acpi_power_on_resources(struct acpi_device *device, int state);
140140
int acpi_power_transition(struct acpi_device *device, int state);

0 commit comments

Comments
 (0)