Skip to contentSkip to conversation

tools: iio: Rename generic_buffer to iio_generic_buffer

RFC PATCH Applied Daniel Baluta 2 participants 2 messages May 24, 2016 – May 29, 2016 IIO

lore
Share & tools
lore
#0 lore raw

RFC PATCH v2 1/1 tools: iio: Rename generic_buffer to iio_generic_buffer

This makes it clear that generic_buffer is an IIO tool and also complies with filename conventions in tools/iio.

---
Changes since v1:
* use -M to detect renames and make the patch easier to review

 tools/iio/Makefile                                   | 6 +++---
 tools/iio/{generic_buffer.c => iio_generic_buffer.c} | 0
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename tools/iio/{generic_buffer.c => iio_generic_buffer.c} (100%)
tools/iio/Makefile +3 -3
index 3a7a54f..e8a009b 100644
@@ -1,16 +1,16 @@
 CC = $(CROSS_COMPILE)gcc
 CFLAGS += -Wall -g -D_GNU_SOURCE
 
-all: iio_event_monitor lsiio generic_buffer
+all: iio_event_monitor lsiio iio_generic_buffer
 
 iio_event_monitor: iio_event_monitor.o iio_utils.o
 
 lsiio: lsiio.o iio_utils.o
 
-generic_buffer: generic_buffer.o iio_utils.o
+iio_generic_buffer: iio_generic_buffer.o iio_utils.o
 
 %.o: %.c iio_utils.h
 
 .PHONY: clean
 clean:
-	rm -f *.o iio_event_monitor lsiio generic_buffer
+	rm -f *.o iio_event_monitor lsiio iio_generic_buffer
tools/iio/iio_generic_buffer.c renamed from tools/iio/generic_buffer.c +0 -0
similarity index 100%
rename from tools/iio/generic_buffer.c
rename to tools/iio/iio_generic_buffer.c
Signature · 1 line
2.5.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Daniel Baluta

This makes it clear that generic_buffer is an IIO tool and also complies with filename conventions in tools/iio.

Pretty uncontroversial bit of common sense to my mind ;)

Applied to the togreg branch of iio.git with a few changes to merge it with recent install patch.

Pushed out as testing for the autobuilders to ignore it (probably).

Thanks,

Jonathan

Quoted 38 lines

---
Changes since v1:
* use -M to detect renames and make the patch easier to review

 tools/iio/Makefile                                   | 6 +++---
 tools/iio/{generic_buffer.c => iio_generic_buffer.c} | 0
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename tools/iio/{generic_buffer.c => iio_generic_buffer.c} (100%)
tools/iio/Makefile +3 -3
index 3a7a54f..e8a009b 100644
@@ -1,16 +1,16 @@
 CC = $(CROSS_COMPILE)gcc
 CFLAGS += -Wall -g -D_GNU_SOURCE
 
-all: iio_event_monitor lsiio generic_buffer
+all: iio_event_monitor lsiio iio_generic_buffer
 
 iio_event_monitor: iio_event_monitor.o iio_utils.o
 
 lsiio: lsiio.o iio_utils.o
 
-generic_buffer: generic_buffer.o iio_utils.o
+iio_generic_buffer: iio_generic_buffer.o iio_utils.o
 
 %.o: %.c iio_utils.h
 
 .PHONY: clean
 clean:
-	rm -f *.o iio_event_monitor lsiio generic_buffer
+	rm -f *.o iio_event_monitor lsiio iio_generic_buffer
tools/iio/iio_generic_buffer.c renamed from tools/iio/generic_buffer.c +0 -0
similarity index 100%
rename from tools/iio/generic_buffer.c
rename to tools/iio/iio_generic_buffer.c