HID: add hid_is_usb() function to make it simpler for USB detection
[platform/kernel/linux-rpi.git] / drivers / hid / hid-uclogic-params.c
index d26d8cd..dd05bed 100644 (file)
@@ -841,8 +841,7 @@ int uclogic_params_init(struct uclogic_params *params,
        struct uclogic_params p = {0, };
 
        /* Check arguments */
-       if (params == NULL || hdev == NULL ||
-           !hid_is_using_ll_driver(hdev, &usb_hid_driver)) {
+       if (params == NULL || hdev == NULL || !hid_is_usb(hdev)) {
                rc = -EINVAL;
                goto cleanup;
        }