mvm: bus: Add helper macros for clarity
Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
@@ -9,6 +9,12 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
/* Helper macros */
|
||||||
|
#define NVM_BUS_FIRST(BUSCTL_P) \
|
||||||
|
(BUSCTL_P)->head
|
||||||
|
#define NVM_BUS_NEXT(DEV_P) \
|
||||||
|
(DEV_P)->next
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Represents valid device types that can be
|
* Represents valid device types that can be
|
||||||
* on the bus.
|
* on the bus.
|
||||||
|
|||||||
Reference in New Issue
Block a user