diff options
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.c')
-rw-r--r-- | src/ec/lenovo/pmh7/pmh7.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c index b02b52aa8e..9607c83e52 100644 --- a/src/ec/lenovo/pmh7/pmh7.c +++ b/src/ec/lenovo/pmh7/pmh7.c @@ -113,8 +113,9 @@ 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") == CB_SUCCESS) - pmh7_touchpad_enable(val); + if (get_option(&val, "touchpad") != CB_SUCCESS) + val = 1; + pmh7_touchpad_enable(val); } struct chip_operations ec_lenovo_pmh7_ops = { |