mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-04 04:06:26 +00:00
HID: letsketch: Use hid_is_usb()
Don't open code existing functionality. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: David Rheinsberg <david.rheinsberg@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
2d60f9f4f2
commit
2bafbef6ff
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user