greybus: add class matching macro
authorJohan Hovold <johan@hovoldconsulting.com>
Sat, 21 Nov 2015 09:52:04 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Sun, 22 Nov 2015 01:15:35 +0000 (17:15 -0800)
Add matching macro for bundle class.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus.h

index 4f8aa31..6da4e78 100644 (file)
        .vendor         = (v),                                  \
        .product        = (p),
 
+#define GREYBUS_DEVICE_CLASS(c)                                        \
+       .match_flags    = GREYBUS_ID_MATCH_CLASS,               \
+       .class          = (c),
+
 /* Maximum number of CPorts */
 #define CPORT_ID_MAX   4095            /* UniPro max id is 4095 */
 #define CPORT_ID_BAD   U16_MAX