Debian Codegraph @

src/ec/lenovo/pmh7/cfr.h

raw symbols SCIP
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /*
4 * CFR enums and structs for Lenovo PMH7 EC
5 */
6
7 #ifndef _LENOVO_PMH7_CFR_H_
8 #define _LENOVO_PMH7_CFR_H_
9
10 #include <drivers/option/cfr_frontend.h>
11
12 /* Touchpad */
13 static const struct sm_object touchpad = SM_DECLARE_ENUM({
14 .opt_name = "touchpad",
15 .ui_name = "Touchpad",
16 .ui_helptext = "Enable or disable the touchpad",
17 .default_value = 1,
18 .values = (const struct sm_enum_value[]) {
19 { "Disabled", 0 },
20 { "Enabled", 1 },
21 SM_ENUM_VALUE_END },
22 });
23
24 /* Trackpoint */
25 static const struct sm_object trackpoint = SM_DECLARE_ENUM({
26 .opt_name = "trackpoint",
27 .ui_name = "Trackpoint",
28 .ui_helptext = "Enable or disable the trackpoint",
29 .default_value = 1,
30 .values = (const struct sm_enum_value[]) {
31 { "Disabled", 0 },
32 { "Enabled", 1 },
33 SM_ENUM_VALUE_END },
34 });
35
36 #endif /* _LENOVO_PMH7_CFR_H_ */