From 6b481c73dd1f4a14d116ec41fa0db7fb419be71a Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 18 Feb 2026 21:22:24 +0100 Subject: [PATCH] mb/google/hatch: 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: I77bfefd0bf173da34675ad64253daae472834bb8 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/91347 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/mainboard/google/hatch/cfr.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mainboard/google/hatch/cfr.c b/src/mainboard/google/hatch/cfr.c index ac424fbb16..3ddcdb1a19 100644 --- a/src/mainboard/google/hatch/cfr.c +++ b/src/mainboard/google/hatch/cfr.c @@ -6,17 +6,13 @@ #include #include -static const struct sm_object touchpad_wake = SM_DECLARE_ENUM({ +static const struct sm_object touchpad_wake = SM_DECLARE_BOOL({ .opt_name = "touchpad_wake", .ui_name = "Touchpad Wake", .ui_helptext = "Enable or disable touchpad wake from sleep.\n" "Disabled by default to prevent random wakeups when\n" "the system is moved while sleeping.", - .default_value = 0, - .values = (const struct sm_enum_value[]) { - { "Disabled", 0 }, - { "Enabled", 1 }, - SM_ENUM_VALUE_END }, + .default_value = false, }); static struct sm_obj_form system = {