diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-09-10 10:55:49 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-09-16 08:37:42 +0000 |
commit | b4be50c9ca3651e4124cde57f227203b47399eab (patch) | |
tree | c36a63662a40aea91c3053e1324aecc18ef2a968 /src/drivers/i2c/nau8825/nau8825.c | |
parent | 936dbe1d064b24bb5f38889d50795e68a2309e62 (diff) | |
download | coreboot-b4be50c9ca3651e4124cde57f227203b47399eab.tar.gz coreboot-b4be50c9ca3651e4124cde57f227203b47399eab.tar.bz2 coreboot-b4be50c9ca3651e4124cde57f227203b47399eab.zip |
acpi: Call acpi_gen_writeSTA by status from device tree
The device tree now supports 'hidden' and the status can be found in
`struct device.hidden`. A new acpi_device_status() will return the
expected setting of STA from a `struct device`.
BUG=b:72200466
BRANCH=eve
TEST=Builds and boots properly on device eve
Change-Id: I6dc62aff63cc3cb950739398a4dcac21836c9766
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://review.coreboot.org/28567
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/i2c/nau8825/nau8825.c')
-rw-r--r-- | src/drivers/i2c/nau8825/nau8825.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/i2c/nau8825/nau8825.c b/src/drivers/i2c/nau8825/nau8825.c index 3cf5edd656b0..86d4306ab73f 100644 --- a/src/drivers/i2c/nau8825/nau8825.c +++ b/src/drivers/i2c/nau8825/nau8825.c @@ -55,7 +55,7 @@ static void nau8825_fill_ssdt(struct device *dev) acpigen_write_name_string("_HID", NAU8825_ACPI_HID); acpigen_write_name_integer("_UID", 0); acpigen_write_name_string("_DDN", dev->chip_ops->name); - acpigen_write_STA(ACPI_STATUS_DEVICE_ALL_ON); + acpigen_write_STA(acpi_device_status(dev)); /* Resources */ acpigen_write_name("_CRS"); |