Re: [PATCH 4/5] Input: elantech - provide a sysfs knob for crc_enabled
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2014-11-08 08:25:45
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2014-11-08 08:25:45
On Sat, Aug 30, 2014 at 04:10:45PM +0200, Ulrik De Bie wrote:
The detection of crc_enabled is known to fail for Fujitsu H730. A DMI blacklist is added for that, but it can be expected that other laptops will pop up with this. Here a sysfs knob is provided to alter the behaviour of crc_enabled. Writing 0 or 1 to it sets the variable to 0 or 1. Writing 2 to it will perform the detection and set the variable to 0 or 1 according to the result of the detection. Reading it will show the crc_enabled variable (0 or 1).
This is over-complicated, please make it straight bool (0/1). If one wants to redetect it can be done by unbinding and rebinding driver through sysfs (either at driver level or serio - drvctl attribute - level). Thanks. -- Dmitry