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 4f8aa318d2abbb64043bcf13aa27285511438d28..6da4e78248a89457b11cdd5af9df4ee8e6631665 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