Commit a716a026 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: psmouse - use i2c_client_type to locate i2c clients

Now that i2c_client_type structure is exported, we can use it, instead
of i2c_adapter_type, when looking for devices that are i2c clients.

Signed-off-by: default avatarDmitry Torokhov <>
parent 165fe9c9
...@@ -99,7 +99,7 @@ static int psmouse_smbus_notifier_call(struct notifier_block *nb, ...@@ -99,7 +99,7 @@ static int psmouse_smbus_notifier_call(struct notifier_block *nb,
break; break;
if (dev->type != &i2c_adapter_type) if (dev->type == &i2c_client_type)
psmouse_smbus_detach_i2c_client(to_i2c_client(dev)); psmouse_smbus_detach_i2c_client(to_i2c_client(dev));
break; break;
} }
Supports Markdown
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