summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7/pmh7.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.c')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c
index 7bbe471979..b02b52aa8e 100644
--- a/src/ec/lenovo/pmh7/pmh7.c
+++ b/src/ec/lenovo/pmh7/pmh7.c
@@ -113,7 +113,7 @@ static void enable_dev(device_t dev)
pmh7_backlight_enable(conf->backlight_enable);
pmh7_dock_event_enable(conf->dock_event_enable);
- if (!get_option(&val, "touchpad"))
+ if (get_option(&val, "touchpad") == CB_SUCCESS)
pmh7_touchpad_enable(val);
}