[PATCH 3/3] Input: elan_i2c - Remove duplicate repeat code

2015-03-08 Thread Duson Lin
Remove duplicate "repeat--" from function elan_initialize. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c_core.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index f24078b..4b970e2 10

[PATCH 2/2] Input: elan_i2c - Return error code when resume fail.

2015-03-07 Thread Duson Lin
The resume function always return success, so stop event can not be triggered when "suspend_stress_test" running. In order to debug more easily, we add some error messages in elan_enable_power and elan_disable_power funtion. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_

[PATCH] Input: elan_i2c - Compare signature metadata before update fw

2015-03-06 Thread Duson Lin
To match different firmware file format, we replace original firmware file size checking with the signature metadata comparison when update firmware, If failed, the update will be aborted. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c.h |6 +++--- drivers/input/mouse

[PATCH] Input: elan_i2c - Compare signature metadata before update fw

2015-01-23 Thread Duson Lin
To match different firmware file format, we replace original firmware file size checking with the signature metadata comparison when update firmware, If failed, the update will be aborted. Signed-off-by: Duson Lin --- drivers/input/mouse/elan_i2c.h |6 +++--- drivers/input/mouse

[PATCH v2] Input: add i2c/smbus driver for elan touchpad

2014-01-06 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 890 3 files changed, 901

[PATCH v2] Input: add i2c/smbus driver for elan touchpad

2013-12-17 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 890 3 files changed, 901

[PATCH] Input: add i2c/smbus driver for elan touchpad

2013-12-16 Thread Duson Lin
This driver adds support for elan i2c/smbus touchpad found on some laptops PC Signed-off-by: Duson Lin --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 908 3 files changed, 919

[PATCH] Add: (1) Detection for newer Elantech touchpads, so that kernel doesn't fall-back to default PS/2 driver. (2) Enable hardware version 4 touchpad right click function.

2013-12-08 Thread Duson Lin
Modify: (1) crc_enabled only support for v3 and v4 touchpad, so initialize crc_enabled as false first and check this hardware flag when hw_version as 3 or 4. Signed-off-by: Duson Lin --- drivers/input/mouse/elantech.c | 30 ++ drivers/input/mouse/elantech.h |2

[PATCH] Input: add i2c/smbus driver for elan touchpad

2013-11-22 Thread Duson Lin
100644 index 000..9892ee1 --- /dev/null +++ b/drivers/input/mouse/elan_i2c.c @@ -0,0 +1,1846 @@ +/* + * Elan I2C/SMBus Touchpad driver + * + * Copyright (c) 2013 ELAN Microelectronics Corp. + * + * Author: 林政維 (Duson Lin) + * Version: 1.4.6 + * + * This program is free software; you can redistrib

[PATCH] Input: add i2c driver for elan i2c touchpad

2013-10-23 Thread Duson Lin
From: Duson Lin This driver adds support for elan i2c touchpad found on some laptops. --- drivers/input/mouse/Kconfig| 10 + drivers/input/mouse/Makefile |1 + drivers/input/mouse/elan_i2c.c | 1439 3 files changed, 1450 insertions(+) create