[PATCH 13/18] misc: storage-by-uuid: rename to storage-by-alias

Ahmad Fatoum a.fatoum at pengutronix.de
Sun Apr 13 23:31:47 PDT 2025


Now that the symbols in the file have been renamed, rename the file
itself too. This was split off as not to confuse git rename detection.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/misc/Kconfig                             | 16 +++++++++++-----
 drivers/misc/Makefile                            |  2 +-
 .../{storage-by-uuid.c => storage-by-alias.c}    |  0
 3 files changed, 12 insertions(+), 6 deletions(-)
 rename drivers/misc/{storage-by-uuid.c => storage-by-alias.c} (100%)

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 40482f8b88a7..73814f36bf9c 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -51,13 +51,19 @@ config STARFIVE_PWRSEQ
 	  be accessed over /dev/mem or used from kernels which still depend
 	  on bootloader for initialization.
 
-config STORAGE_BY_UUID
-	bool "storage by UUID"
+config STORAGE_BY_ALIAS
+	bool "storage by alias"
 	depends on OFDEVICE
 	help
-	  This adds a driver which matches to a "barebox,storage-by-uuid"
-	  compatible node. The driver looks for a storage device matching the
-	  given UUID and when found registers a new cdev for the device.
+	  This adds a driver which matches device tree nodes corresponding
+	  to a barebox cdev aliases.
+
+	  Following compatibles are supported:
+
+	  - "barebox,storage-by-uuid"
+
+	  Look for a storage device matching the given DISKUUID and when found
+	  registers a new cdev for the device.
 
 	  This driver solved a very specific problem. On EFI the storage devices
 	  are not connected to any device tree node. barebox-state however expects
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 871af85d5920..c4b61de7b8b5 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -10,4 +10,4 @@ obj-$(CONFIG_DEV_MEM)		+= mem.o
 obj-$(CONFIG_DEV_PORT)		+= port.o
 obj-$(CONFIG_UBOOTVAR)		+= ubootvar.o
 obj-$(CONFIG_STARFIVE_PWRSEQ)	+= starfive-pwrseq.o
-obj-$(CONFIG_STORAGE_BY_UUID)	+= storage-by-uuid.o
+obj-$(CONFIG_STORAGE_BY_ALIAS)	+= storage-by-alias.o
diff --git a/drivers/misc/storage-by-uuid.c b/drivers/misc/storage-by-alias.c
similarity index 100%
rename from drivers/misc/storage-by-uuid.c
rename to drivers/misc/storage-by-alias.c
-- 
2.39.5




More information about the barebox mailing list