Commit 26dd633e authored by Yiannis Marangos's avatar Yiannis Marangos Committed by Dmitry Torokhov

Input: synaptics-rmi4 - RMI4 can also use SMBUS version 3

Some Synaptics devices, such as LEN0073, use SMBUS version 3.
Signed-off-by: default avatarYiannis Marangos <yiannis.marangos@gmail.com>
Acked-by: default avatarBenjamin Tissoires <benjamion.tissoires@redhat.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent eca25391
...@@ -312,7 +312,7 @@ static int rmi_smb_probe(struct i2c_client *client, ...@@ -312,7 +312,7 @@ static int rmi_smb_probe(struct i2c_client *client,
rmi_smb->xport.dev = &client->dev; rmi_smb->xport.dev = &client->dev;
rmi_smb->xport.pdata = *pdata; rmi_smb->xport.pdata = *pdata;
rmi_smb->xport.pdata.irq = client->irq; rmi_smb->xport.pdata.irq = client->irq;
rmi_smb->xport.proto_name = "smb2"; rmi_smb->xport.proto_name = "smb";
rmi_smb->xport.ops = &rmi_smb_ops; rmi_smb->xport.ops = &rmi_smb_ops;
smbus_version = rmi_smb_get_version(rmi_smb); smbus_version = rmi_smb_get_version(rmi_smb);
...@@ -322,7 +322,7 @@ static int rmi_smb_probe(struct i2c_client *client, ...@@ -322,7 +322,7 @@ static int rmi_smb_probe(struct i2c_client *client,
rmi_dbg(RMI_DEBUG_XPORT, &client->dev, "Smbus version is %d", rmi_dbg(RMI_DEBUG_XPORT, &client->dev, "Smbus version is %d",
smbus_version); smbus_version);
if (smbus_version != 2) { if (smbus_version != 2 && smbus_version != 3) {
dev_err(&client->dev, "Unrecognized SMB version %d\n", dev_err(&client->dev, "Unrecognized SMB version %d\n",
smbus_version); smbus_version);
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment