diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-11-02 20:59:32 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-04-21 09:01:02 +0000 |
commit | 9dc1c51db47f43190c9396e9dd77f051530265a4 (patch) | |
tree | d37785def28e56bc72a4a4e4d2778fc40023a9a5 /src/ec/lenovo/h8/wwan.c | |
parent | f79030c6ba066d904c0ef6ddcc2483ed60ff7731 (diff) |
ec/lenovo: Use get_int_option()
Change-Id: Ie5cb54b171244be71848a59a788ed8d42b3e3161
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47111
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/ec/lenovo/h8/wwan.c')
-rw-r--r-- | src/ec/lenovo/h8/wwan.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ec/lenovo/h8/wwan.c b/src/ec/lenovo/h8/wwan.c index fbd9d29fe1..90f6b47bbb 100644 --- a/src/ec/lenovo/h8/wwan.c +++ b/src/ec/lenovo/h8/wwan.c @@ -46,10 +46,5 @@ bool h8_has_wwan(const struct device *dev) */ bool h8_wwan_nv_enable(void) { - u8 val; - - if (get_option(&val, "wwan") != CB_SUCCESS) - return true; - - return val; + return get_int_option("wwan", true); } |