From: Johan Hovold Date: Sat, 21 Nov 2015 09:52:04 +0000 (+0100) Subject: greybus: add class matching macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3823c614793131afcfd87ba87bd83012ec52a879;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: add class matching macro Add matching macro for bundle class. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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