summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/bluetooth.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-11-02 20:59:32 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-04-21 09:01:02 +0000
commit9dc1c51db47f43190c9396e9dd77f051530265a4 (patch)
treed37785def28e56bc72a4a4e4d2778fc40023a9a5 /src/ec/lenovo/h8/bluetooth.c
parentf79030c6ba066d904c0ef6ddcc2483ed60ff7731 (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/bluetooth.c')
-rw-r--r--src/ec/lenovo/h8/bluetooth.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ec/lenovo/h8/bluetooth.c b/src/ec/lenovo/h8/bluetooth.c
index 9e0b266a67..463e0e3332 100644
--- a/src/ec/lenovo/h8/bluetooth.c
+++ b/src/ec/lenovo/h8/bluetooth.c
@@ -48,10 +48,5 @@ bool h8_has_bdc(const struct device *dev)
*/
bool h8_bluetooth_nv_enable(void)
{
- u8 val;
-
- if (get_option(&val, "bluetooth") != CB_SUCCESS)
- return true;
-
- return val;
+ return get_int_option("bluetooth", true);
}