[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191209111107.32239-1-dave.wang@emc.com.tw>
Date: Mon, 9 Dec 2019 06:11:07 -0500
From: Dave Wang <dave.wang@....com.tw>
To: Linux-input@...r.kernel.org, Linux-kernel@...r.kernel.org,
Dmitry.torokhov@...il.com
Cc: phoenix@....com.tw, josh.chen@....com.tw, jingle.wu@....com.tw,
kai.heng.feng@...onical.com, Dave Wang <dave.wang@....com.tw>
Subject: [PATCH 1/3] Input: elan_i2c - Do no operation for elan_smbus_set_mode function
Some touchpads might get error while triggerring the set_mode command
in SMBus interface. Do no operation for elan_smbus_set_mode function.
Signed-off-by: Dave Wang <dave.wang@....com.tw>
---
drivers/input/mouse/elan_i2c_smbus.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/input/mouse/elan_i2c_smbus.c b/drivers/input/mouse/elan_i2c_smbus.c
index 8c3185d54c73..bcb9ec4a7a6b 100644
--- a/drivers/input/mouse/elan_i2c_smbus.c
+++ b/drivers/input/mouse/elan_i2c_smbus.c
@@ -84,10 +84,7 @@ static int elan_smbus_initialize(struct i2c_client *client)
static int elan_smbus_set_mode(struct i2c_client *client, u8 mode)
{
- u8 cmd[4] = { 0x00, 0x07, 0x00, mode };
-
- return i2c_smbus_write_block_data(client, ETP_SMBUS_IAP_CMD,
- sizeof(cmd), cmd);
+ return 0; /* A no-op */
}
static int elan_smbus_sleep_control(struct i2c_client *client, bool sleep)
--
2.17.1
Powered by blists - more mailing lists