diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-04-19 13:15:28 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:00:18 +0000 |
commit | 62719a379776efdde3439f053363170133fd8e69 (patch) | |
tree | c091d47e9b9cc26a2b7ee19bfffebb728e7253d9 /src/soc/intel/common/block/pmc | |
parent | 5daa412939bfb35cec7a876d68860fe0f4bb9515 (diff) |
{sb,soc}/intel: Use `get_int_option` function
Change-Id: I05f724785880089a513319d70dfd70fc2a6b7679
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47109
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/soc/intel/common/block/pmc')
-rw-r--r-- | src/soc/intel/common/block/pmc/pmclib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/pmc/pmclib.c b/src/soc/intel/common/block/pmc/pmclib.c index 3b7aa0a169..935dd0c606 100644 --- a/src/soc/intel/common/block/pmc/pmclib.c +++ b/src/soc/intel/common/block/pmc/pmclib.c @@ -583,8 +583,8 @@ void pmc_set_power_failure_state(const bool target_on) { bool on; - uint8_t state = CONFIG_MAINBOARD_POWER_FAILURE_STATE; - get_option(&state, "power_on_after_fail"); + const int state = get_int_option("power_on_after_fail", + CONFIG_MAINBOARD_POWER_FAILURE_STATE); switch (state) { case MAINBOARD_POWER_STATE_OFF: |