mb/google/volteer: 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: I8f3a69dfb9fb915c44c9a5486512aa82c2615fab Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91345 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
71b7167396
commit
e7c05d666c
1 changed files with 2 additions and 6 deletions
|
|
@ -6,17 +6,13 @@
|
|||
#include <intelblocks/cfr.h>
|
||||
#include <soc/cfr.h>
|
||||
|
||||
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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue