drivers/generic/gpio_keys: Write device ACPI status
Allows device to be hidden from OS (Windows) via devicetree 'hidden' keyword. TEST=tested with rest of patch train Change-Id: I81482bd19e24627cab80deed2b9057f45b6ac0a0 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/78037 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
63e77b0252
commit
2dc689372d
|
@ -87,6 +87,8 @@ static void gpio_keys_fill_ssdt_generator(const struct device *dev)
|
|||
acpi_dp_add_child(dsd, "button-0", child);
|
||||
acpi_dp_write(dsd);
|
||||
|
||||
acpigen_write_STA(acpi_device_status(dev));
|
||||
|
||||
acpigen_pop_len(); /* Device */
|
||||
acpigen_pop_len(); /* Scope */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue