Commit 2bafbef6 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Jiri Kosina

HID: letsketch: Use hid_is_usb()

Don't open code existing functionality.
Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Reviewed-by: default avatarDavid Rheinsberg <david.rheinsberg@gmail.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 2d60f9f4
...@@ -238,7 +238,7 @@ static int letsketch_probe(struct hid_device *hdev, const struct hid_device_id * ...@@ -238,7 +238,7 @@ static int letsketch_probe(struct hid_device *hdev, const struct hid_device_id *
char buf[256]; char buf[256];
int i, ret; int i, ret;
if (!hid_is_using_ll_driver(hdev, &usb_hid_driver)) if (!hid_is_usb(hdev))
return -ENODEV; return -ENODEV;
intf = to_usb_interface(hdev->dev.parent); intf = to_usb_interface(hdev->dev.parent);
......
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