NFC: pn533: Convert to use USB_DEVICE macro
authorAxel Lin <axel.lin@ingics.com>
Fri, 14 Feb 2014 09:40:48 +0000 (17:40 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 23 Feb 2014 22:32:18 +0000 (23:32 +0100)
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c

index cf1a87bb74f86b405d3edc73249155f51bfb661a..d46a700a9637a9152aee5bc5c41b58eacfbe8ec5 100644 (file)
                                   NFC_PROTO_NFC_DEP_MASK)
 
 static const struct usb_device_id pn533_table[] = {
-       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE,
-         .idVendor             = PN533_VENDOR_ID,
-         .idProduct            = PN533_PRODUCT_ID,
-         .driver_info          = PN533_DEVICE_STD,
-       },
-       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE,
-         .idVendor             = SCM_VENDOR_ID,
-         .idProduct            = SCL3711_PRODUCT_ID,
-         .driver_info          = PN533_DEVICE_STD,
-       },
-       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE,
-         .idVendor             = SONY_VENDOR_ID,
-         .idProduct            = PASORI_PRODUCT_ID,
-         .driver_info          = PN533_DEVICE_PASORI,
-       },
-       { .match_flags          = USB_DEVICE_ID_MATCH_DEVICE,
-         .idVendor             = ACS_VENDOR_ID,
-         .idProduct            = ACR122U_PRODUCT_ID,
-         .driver_info          = PN533_DEVICE_ACR122U,
-       },
+       { USB_DEVICE(PN533_VENDOR_ID, PN533_PRODUCT_ID),
+         .driver_info = PN533_DEVICE_STD },
+       { USB_DEVICE(SCM_VENDOR_ID, SCL3711_PRODUCT_ID),
+         .driver_info = PN533_DEVICE_STD },
+       { USB_DEVICE(SONY_VENDOR_ID, PASORI_PRODUCT_ID),
+         .driver_info = PN533_DEVICE_PASORI },
+       { USB_DEVICE(ACS_VENDOR_ID, ACR122U_PRODUCT_ID),
+         .driver_info = PN533_DEVICE_ACR122U },
        { }
 };
 MODULE_DEVICE_TABLE(usb, pn533_table);