From 3823c614793131afcfd87ba87bd83012ec52a879 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Sat, 21 Nov 2015 10:52:04 +0100 Subject: [PATCH] greybus: add class matching macro Add matching macro for bundle class. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/greybus.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/greybus/greybus.h b/drivers/staging/greybus/greybus.h index 4f8aa318d2ab..6da4e78248a8 100644 --- a/drivers/staging/greybus/greybus.h +++ b/drivers/staging/greybus/greybus.h @@ -50,6 +50,10 @@ .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 -- 2.20.1