diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-03-25 10:45:13 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-03 12:03:55 -0700 |
commit | a716a026bb0d824c9ab6d6ac778c030c0030b178 (patch) | |
tree | 2d21b8f641bded55b073f4fc109ff26728c43940 | |
parent | 165fe9c9cd5d1cbc3165dc2e0b24d96314186f8c (diff) |
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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r-- | drivers/input/mouse/psmouse-smbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/psmouse-smbus.c b/drivers/input/mouse/psmouse-smbus.c index d2b1ea34feac..c7ac24d119c1 100644 --- a/drivers/input/mouse/psmouse-smbus.c +++ b/drivers/input/mouse/psmouse-smbus.c @@ -99,7 +99,7 @@ static int psmouse_smbus_notifier_call(struct notifier_block *nb, break; case BUS_NOTIFY_REMOVED_DEVICE: - if (dev->type != &i2c_adapter_type) + if (dev->type == &i2c_client_type) psmouse_smbus_detach_i2c_client(to_i2c_client(dev)); break; } |