mvm: bus: Add helper macros for clarity

Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
2026-05-24 05:12:47 -05:00
parent 791dcb4e2b
commit e6298f1e76
+6
View File
@@ -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.