From e76f15f4fdf2d2094b351a6a1a95dec1c63d017c Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 19 Apr 2021 15:20:28 +0200 Subject: src: Replace remaining {get,set}_option() instances With this change, the type-unsafe {get,set}_option() API functions are no longer used directly. The old API gets dropped in a follow-up. Change-Id: Id3f3e172c850d50a7d2f348b1c3736969c73837d Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/52512 Reviewed-by: Patrick Rudolph Reviewed-by: Patrick Rudolph Tested-by: build bot (Jenkins) --- src/mainboard/lenovo/x60/smihandler.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/mainboard/lenovo') diff --git a/src/mainboard/lenovo/x60/smihandler.c b/src/mainboard/lenovo/x60/smihandler.c index ab8a1e89a8..20ca060d82 100644 --- a/src/mainboard/lenovo/x60/smihandler.c +++ b/src/mainboard/lenovo/x60/smihandler.c @@ -17,16 +17,13 @@ static void mainboard_smi_save_cmos(void) { - u8 val; u8 tmp70, tmp72; tmp70 = inb(0x70); tmp72 = inb(0x72); - val = pci_read_config8(PCI_DEV(0, 2, 1), 0xf4); - set_option("tft_brightness", &val); - val = ec_read(H8_VOLUME_CONTROL); - set_option("volume", &val); + set_int_option("tft_brightness", pci_read_config8(PCI_DEV(0, 2, 1), 0xf4)); + set_int_option("volume", ec_read(H8_VOLUME_CONTROL)); outb(tmp70, 0x70); outb(tmp72, 0x72); -- cgit v1.2.3