[PATCH 2/8] membuff: Rename the files to membuf

Simon Glass sjg at chromium.org
Fri Oct 18 05:00:21 CEST 2024


Rename the C and header files to use the membuf basename, to match the
functions.

Add a MAINTAINERS entry while we are here.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 MAINTAINERS                       | 7 +++++++
 include/asm-generic/global_data.h | 2 +-
 include/{membuff.h => membuf.h}   | 0
 lib/Makefile                      | 2 +-
 lib/{membuff.c => membuf.c}       | 2 +-
 5 files changed, 10 insertions(+), 3 deletions(-)
 rename include/{membuff.h => membuf.h} (100%)
 rename lib/{membuff.c => membuf.c} (99%)

diff --git a/MAINTAINERS b/MAINTAINERS
index eef63530f68..7e12fc82a63 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1242,6 +1242,13 @@ T:	git git://github.com/ARM-software/u-boot.git
 F:	drivers/video/mali_dp.c
 F:	drivers/i2c/i2c-versatile.c
 
+MEMBUF
+M:	Simon Glass <sjg at chromium.org>
+S:	Maintained
+T:	git https://source.denx.de/u-boot/u-boot.git
+F:	include/membuf.h
+F:	lib/membuf.c
+
 MICROBLAZE
 M:	Michal Simek <monstr at monstr.eu>
 S:	Maintained
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
index 644a0d77873..cc87d0037f0 100644
--- a/include/asm-generic/global_data.h
+++ b/include/asm-generic/global_data.h
@@ -24,7 +24,7 @@
 #include <cyclic.h>
 #include <event_internal.h>
 #include <fdtdec.h>
-#include <membuff.h>
+#include <membuf.h>
 #include <linux/list.h>
 #include <linux/build_bug.h>
 #include <asm-offsets.h>
diff --git a/include/membuff.h b/include/membuf.h
similarity index 100%
rename from include/membuff.h
rename to include/membuf.h
diff --git a/lib/Makefile b/lib/Makefile
index dbcfa87ebd6..57cc4b0bdc8 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -124,7 +124,7 @@ obj-y += hang.o
 obj-y += linux_compat.o
 obj-y += linux_string.o
 obj-$(CONFIG_$(PHASE_)LMB) += lmb.o
-obj-y += membuff.o
+obj-y += membuf.o
 obj-$(CONFIG_REGEX) += slre.o
 obj-y += string.o
 obj-y += tables_csum.o
diff --git a/lib/membuff.c b/lib/membuf.c
similarity index 99%
rename from lib/membuff.c
rename to lib/membuf.c
index 435d12b8a3c..5473efa98ca 100644
--- a/lib/membuff.c
+++ b/lib/membuf.c
@@ -9,7 +9,7 @@
 #include <errno.h>
 #include <log.h>
 #include <malloc.h>
-#include "membuff.h"
+#include "membuf.h"
 
 void membuf_purge(struct membuff *mb)
 {
-- 
2.34.1



More information about the U-Boot mailing list