提交 2bafbef6 编写于 作者: T Thomas Weißschuh 提交者: Jiri Kosina

HID: letsketch: Use hid_is_usb()

Don't open code existing functionality.
Signed-off-by: NThomas Weißschuh <linux@weissschuh.net>
Reviewed-by: NDavid Rheinsberg <david.rheinsberg@gmail.com>
Reviewed-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册