Reenable touchpad lock

This commit is contained in:
Jeremy Soller 2018-02-17 16:55:14 -07:00
parent fb13ee2dfe
commit cad4a1640b
2 changed files with 3 additions and 17 deletions

View File

@ -2,8 +2,6 @@
* led.c * led.c
* *
* Copyright (C) 2017 Jeremy Soller <jeremy@system76.com> * 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 * 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 * 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; struct _kb_led_work *w;
w = container_of(work, struct _kb_led_work, work); 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) { 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; return LED_OFF;
} }

View File

@ -234,9 +234,9 @@ static int s76_probe(struct platform_device *dev) {
s76_wmbb(0x46, 0, NULL); s76_wmbb(0x46, 0, NULL);
// Enable touchpad lock // Enable touchpad lock
//i8042_lock_chip(); i8042_lock_chip();
//i8042_command(NULL, 0x97); i8042_command(NULL, 0x97);
//i8042_unlock_chip(); i8042_unlock_chip();
return 0; return 0;
} }