OSDN Git Service

Input: elants_i2c - provide an attribute to show calibration count
authorJohnny Chuang <johnny.chuang@emc.com.tw>
Tue, 12 May 2020 21:44:39 +0000 (14:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 May 2020 22:34:00 +0000 (15:34 -0700)
commitcf520c64301204afa8272a94cc2e1495a425446a
tree144604d5b2ff82bd10f16a08cbe841c8c44c72a7
parent5fc70e350edd30fb22d2f9b4e6d680c5471890ff
Input: elants_i2c - provide an attribute to show calibration count

There is an non-touch case by non-calibration after update firmware.
Elan could know calibrate or not by calibration count.
The value of '0xffff' means we didn't calibrate after update firmware.
If calibrate success, it will plus one and change to '0x0000'.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Link: https://lore.kernel.org/r/1588754932-5902-1-git-send-email-johnny.chuang.emc@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c