From e6298f1e76893483a4595cb731e5896257fa42a1 Mon Sep 17 00:00:00 2001 From: "Chloe M." Date: Sun, 24 May 2026 05:12:47 -0500 Subject: [PATCH] mvm: bus: Add helper macros for clarity Signed-off-by: Chloe M. --- mvm/include/mvm/bus.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mvm/include/mvm/bus.h b/mvm/include/mvm/bus.h index a515068..de38876 100644 --- a/mvm/include/mvm/bus.h +++ b/mvm/include/mvm/bus.h @@ -9,6 +9,12 @@ #include #include +/* 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 * on the bus.