diff mbox series

[v2,2/6] nvmxip: move header to include

Message ID 20230529140229.3225090-3-rui.silva@linaro.org
State Superseded
Headers show
Series corstone1000: fwu metadata and GPT | expand

Commit Message

Rui Miguel Silva May 29, 2023, 2:02 p.m. UTC
Move header to include to allow external code
to get the internal bdev structures to access
block device operations.

as at it, just add the UCLASS_NVMXIP string
so we get the correct output in partitions
listing.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
---
 {drivers/mtd/nvmxip => include}/nvmxip.h | 0
 test/dm/nvmxip.c                         | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename {drivers/mtd/nvmxip => include}/nvmxip.h (100%)
diff mbox series

Patch

diff --git a/drivers/mtd/nvmxip/nvmxip.h b/include/nvmxip.h
similarity index 100%
rename from drivers/mtd/nvmxip/nvmxip.h
rename to include/nvmxip.h
diff --git a/test/dm/nvmxip.c b/test/dm/nvmxip.c
index e934748eb5d2..89bf481f6161 100644
--- a/test/dm/nvmxip.c
+++ b/test/dm/nvmxip.c
@@ -17,7 +17,7 @@ 
 #include <linux/bitops.h>
 #include <test/test.h>
 #include <test/ut.h>
-#include "../../drivers/mtd/nvmxip/nvmxip.h"
+#include <nvmxip.h>
 
 /* NVMXIP devices described in the device tree */
 #define SANDBOX_NVMXIP_DEVICES 2