diff --git a/src/ec/lenovo/pmh7/cfr.h b/src/ec/lenovo/pmh7/cfr.h index 329fb56a3e..bda05edeea 100644 --- a/src/ec/lenovo/pmh7/cfr.h +++ b/src/ec/lenovo/pmh7/cfr.h @@ -10,27 +10,19 @@ #include /* Touchpad */ -static const struct sm_object touchpad = SM_DECLARE_ENUM({ +static const struct sm_object touchpad = SM_DECLARE_BOOL({ .opt_name = "touchpad", .ui_name = "Touchpad", .ui_helptext = "Enable or disable the touchpad", - .default_value = 1, - .values = (const struct sm_enum_value[]) { - { "Disabled", 0 }, - { "Enabled", 1 }, - SM_ENUM_VALUE_END }, + .default_value = true, }); /* Trackpoint */ -static const struct sm_object trackpoint = SM_DECLARE_ENUM({ +static const struct sm_object trackpoint = SM_DECLARE_BOOL({ .opt_name = "trackpoint", .ui_name = "Trackpoint", .ui_helptext = "Enable or disable the trackpoint", - .default_value = 1, - .values = (const struct sm_enum_value[]) { - { "Disabled", 0 }, - { "Enabled", 1 }, - SM_ENUM_VALUE_END }, + .default_value = true, }); #endif /* _LENOVO_PMH7_CFR_H_ */