mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
greybus: add class matching macro
Add matching macro for bundle class. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
700001af96
commit
3823c61479
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user