Reenable touchpad lock
This commit is contained in:
parent
fb13ee2dfe
commit
cad4a1640b
14
kb_led.c
14
kb_led.c
|
|
@ -2,8 +2,6 @@
|
|||
* led.c
|
||||
*
|
||||
* Copyright (C) 2017 Jeremy Soller <jeremy@system76.com>
|
||||
* Copyright (C) 2014-2016 Arnoud Willemsen <mail@lynthium.com>
|
||||
* Copyright (C) 2013-2015 TUXEDO Computers GmbH <tux@tuxedocomputers.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -31,21 +29,9 @@ static void kb_led_update(struct work_struct *work) {
|
|||
struct _kb_led_work *w;
|
||||
|
||||
w = container_of(work, struct _kb_led_work, work);
|
||||
//
|
||||
// ec_read(0xD9, &byte);
|
||||
//
|
||||
// ec_write(0xD9, w->wk ? byte & ~0x40 : byte | 0x40);
|
||||
//
|
||||
// /* wmbb 0x6C 1 (?) */
|
||||
}
|
||||
|
||||
static enum led_brightness kb_led_get(struct led_classdev *led_cdev) {
|
||||
// u8 byte;
|
||||
//
|
||||
// ec_read(0xD9, &byte);
|
||||
//
|
||||
// return byte & 0x40 ? LED_OFF : LED_FULL;
|
||||
|
||||
return LED_OFF;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -234,9 +234,9 @@ static int s76_probe(struct platform_device *dev) {
|
|||
s76_wmbb(0x46, 0, NULL);
|
||||
|
||||
// Enable touchpad lock
|
||||
//i8042_lock_chip();
|
||||
//i8042_command(NULL, 0x97);
|
||||
//i8042_unlock_chip();
|
||||
i8042_lock_chip();
|
||||
i8042_command(NULL, 0x97);
|
||||
i8042_unlock_chip();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue