chore(flake)!: bump inputs

As a part of this update, lanzaboote tag is also bumped up one patch
revision, and the ac71 driver is updated to have the new function
signature.
This commit is contained in:
514fpv 2025-02-06 10:47:11 +08:00
parent 1c106843f0
commit 748722b55c
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
3 changed files with 62 additions and 308 deletions

View file

@ -115,7 +115,7 @@ static void emit_keyboard_led_hw_changed(void)
}
#endif
static void ac71_wmi_event_d2_handler(union acpi_object *obj)
static void ac71_wmi_event_d2_handler(const union acpi_object *obj)
{
bool do_report = true;
@ -255,48 +255,23 @@ static void ac71_wmi_event_d2_handler(union acpi_object *obj)
}
static void ac71_wmi_event_handler(u32 value, void *context)
static void ac71_wmi_event_handler(union acpi_object *obj, void *context)
{
struct acpi_buffer response = { ACPI_ALLOCATE_BUFFER, NULL };
union acpi_object *obj;
acpi_status status;
pr_info("%s(value=%#04x)\n", __func__, (unsigned int) value);
status = wmi_get_event_data(value, &response);
if (ACPI_FAILURE(status)) {
pr_err("bad WMI event status: %#010x\n", (unsigned int) status);
if (!obj)
return;
pr_info("obj->type = %d\n", (int) obj->type);
if (obj->type == ACPI_TYPE_INTEGER) {
pr_info("int = %u\n", (unsigned int) obj->integer.value);
} else if (obj->type == ACPI_TYPE_STRING) {
pr_info("string = '%s'\n", obj->string.pointer);
} else if (obj->type == ACPI_TYPE_BUFFER) {
pr_info("buffer = %u %*ph", obj->buffer.length,
(int) obj->buffer.length, (void *) obj->buffer.pointer);
}
obj = response.pointer;
if (obj) {
pr_info("obj->type = %d\n", (int) obj->type);
if (obj->type == ACPI_TYPE_INTEGER) {
pr_info("int = %u\n", (unsigned int) obj->integer.value);
} else if (obj->type == ACPI_TYPE_STRING) {
pr_info("string = '%s'\n", obj->string.pointer);
} else if (obj->type == ACPI_TYPE_BUFFER) {
uint32_t i;
for (i = 0; i < obj->buffer.length; i++)
pr_info("buf[%u] = %#04x\n",
(unsigned int) i,
(unsigned int) obj->buffer.pointer[i]);
}
}
switch (value) {
case 0xd2:
if (strcmp((char *)context, AC71_WMI_EVENT2_GUID) == 0)
ac71_wmi_event_d2_handler(obj);
break;
case 0xd1:
case 0xd0:
break;
}
kfree(obj);
}
static int __init setup_input_dev(void)