Skip to contentSkip to conversation

Input: elan_i2c - Do no operation for elan_smbus_sleep_control function

PATCH In review Dave Wang 1 participant 1 message Dec 9, 2019

Subsystems (2)
lore
Share & tools
lore

Dave Wang

author
#0 lore raw

PATCH 2/3 Input: elan_i2c - Do no operation for elan_smbus_sleep_control function

Some touchpads might get error while triggerring the sleep_control command in SMBus interface. Do no operation for elan_smbus_sleep_control function.

---
 drivers/input/mouse/elan_i2c_smbus.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/input/mouse/elan_i2c_smbus.c +1 -4
index bcb9ec4a7a6b..9ffb1f834507 100644
@@ -89,10 +89,7 @@ static int elan_smbus_set_mode(struct i2c_client *client, u8 mode)
 
 static int elan_smbus_sleep_control(struct i2c_client *client, bool sleep)
 {
-	if (sleep)
-		return i2c_smbus_write_byte(client, ETP_SMBUS_SLEEP_CMD);
-	else
-		return 0; /* XXX should we send ETP_SMBUS_ENABLE_TP here? */
+	return 0; /* A no-op */
 }
 
 static int elan_smbus_power_control(struct i2c_client *client, bool enable)
Signature · 1 line
2.17.1