diff options
author | Eric Lai <ericr_lai@compal.corp-partner.google.com> | 2021-03-09 21:36:01 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-15 06:20:55 +0000 |
commit | d8e6d3e2307b4531767462ef6359da028cf11218 (patch) | |
tree | f656aad3274f35b314c8cfcf8f2fd5fefc522de2 /src | |
parent | f6efeae66cd61a9eb95a4f6102dd29c4495fa473 (diff) |
drivers/generic/alc1015: Fix missing _DSD and correct property name
Missing acpi_dp_write and correct the name from sdb to sdb-gpios for
driver.
BUG=b:177971830
TEST: ALC1015P driver can get sdb-gpio properly.
Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com>
Change-Id: I2728a7dad695d5c97e85c5d86b1effea1595da65
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51379
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/generic/alc1015/alc1015.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/generic/alc1015/alc1015.c b/src/drivers/generic/alc1015/alc1015.c index afb9b116da..f698b5f5d3 100644 --- a/src/drivers/generic/alc1015/alc1015.c +++ b/src/drivers/generic/alc1015/alc1015.c @@ -40,7 +40,8 @@ static void alc1015_fill_ssdt(const struct device *dev) /* This points to the first pin in the first gpio entry in _CRS */ path = acpi_device_path(dev); dp = acpi_dp_new_table("_DSD"); - acpi_dp_add_gpio(dp, "sdb", path, 0, 0, config->sdb.active_low); + acpi_dp_add_gpio(dp, "sdb-gpios", path, 0, 0, config->sdb.active_low); + acpi_dp_write(dp); acpigen_pop_len(); /* Device */ acpigen_pop_len(); /* Scope */ |