projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
700001a
)
greybus: add class matching macro
author
Johan Hovold
<johan@hovoldconsulting.com>
Sat, 21 Nov 2015 09:52:04 +0000
(10:52 +0100)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/greybus.h
b/drivers/staging/greybus/greybus.h
index
4f8aa31
..
6da4e78
100644
(file)
--- 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