From 9a58dc7fee330021954e913c85b409776ee23d83 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 18 Feb 2026 21:21:25 +0100 Subject: [PATCH] mb/google/auron: Replace CFR enums with booleans Boolean options are intended to represent generic "Enable"/"Disable" options, but without enum options' extra bloat in the CFR structures. Change-Id: Ib480c7dcd99eb5bf16b124584b4e7dbad90d0c84 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/91346 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/mainboard/google/auron/cfr.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mainboard/google/auron/cfr.c b/src/mainboard/google/auron/cfr.c index 90106a5586..dea0e812be 100644 --- a/src/mainboard/google/auron/cfr.c +++ b/src/mainboard/google/auron/cfr.c @@ -5,15 +5,11 @@ #include #include -static const struct sm_object touchscreen = SM_DECLARE_ENUM({ +static const struct sm_object touchscreen = SM_DECLARE_BOOL({ .opt_name = "touchscreen", .ui_name = "Touchscreen", .ui_helptext = "Enable or disable the integrated touchscreen device", - .default_value = 1, - .values = (const struct sm_enum_value[]) { - { "Disabled", 0 }, - { "Enabled", 1 }, - SM_ENUM_VALUE_END }, + .default_value = true, #if !CONFIG(BOARD_GOOGLE_LULU) .flags = CFR_OPTFLAG_SUPPRESS, #endif