From 817020cfb3a2649064a1e14e083934234e2c208d Mon Sep 17 00:00:00 2001 From: Roberta Dobrescu Date: Thu, 26 Feb 2015 10:49:25 +0200 Subject: [PATCH] iio: Move iio userspace applications out of staging This patch moves iio userspace applications out of staging, to tools/iio/ and adds a Makefile in order to compile them easily. It also adds tools/iio/ to MAINTAINERS file. Signed-off-by: Roberta Dobrescu Signed-off-by: Jonathan Cameron --- MAINTAINERS | 1 + tools/iio/Makefile | 16 ++++++++++++++++ .../Documentation => tools/iio}/generic_buffer.c | 0 .../iio}/iio_event_monitor.c | 0 .../iio/Documentation => tools/iio}/iio_utils.c | 0 .../iio/Documentation => tools/iio}/iio_utils.h | 0 .../iio/Documentation => tools/iio}/lsiio.c | 0 7 files changed, 17 insertions(+) create mode 100644 tools/iio/Makefile rename {drivers/staging/iio/Documentation => tools/iio}/generic_buffer.c (100%) rename {drivers/staging/iio/Documentation => tools/iio}/iio_event_monitor.c (100%) rename {drivers/staging/iio/Documentation => tools/iio}/iio_utils.c (100%) rename {drivers/staging/iio/Documentation => tools/iio}/iio_utils.h (100%) rename {drivers/staging/iio/Documentation => tools/iio}/lsiio.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 873f496c6364..6fb6bdc2eb3f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4871,6 +4871,7 @@ S: Maintained F: drivers/iio/ F: drivers/staging/iio/ F: include/linux/iio/ +F: tools/iio/ IKANOS/ADI EAGLE ADSL USB DRIVER M: Matthieu Castet diff --git a/tools/iio/Makefile b/tools/iio/Makefile new file mode 100644 index 000000000000..83813ad379f9 --- /dev/null +++ b/tools/iio/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -Wall -g + +all: iio_event_monitor lsiio 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 + +%.o: %.c iio_utils.h + +.PHONY: clean +clean: + rm -f *.o iio_event_monitor lsiio generic_buffer diff --git a/drivers/staging/iio/Documentation/generic_buffer.c b/tools/iio/generic_buffer.c similarity index 100% rename from drivers/staging/iio/Documentation/generic_buffer.c rename to tools/iio/generic_buffer.c diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/tools/iio/iio_event_monitor.c similarity index 100% rename from drivers/staging/iio/Documentation/iio_event_monitor.c rename to tools/iio/iio_event_monitor.c diff --git a/drivers/staging/iio/Documentation/iio_utils.c b/tools/iio/iio_utils.c similarity index 100% rename from drivers/staging/iio/Documentation/iio_utils.c rename to tools/iio/iio_utils.c diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/tools/iio/iio_utils.h similarity index 100% rename from drivers/staging/iio/Documentation/iio_utils.h rename to tools/iio/iio_utils.h diff --git a/drivers/staging/iio/Documentation/lsiio.c b/tools/iio/lsiio.c similarity index 100% rename from drivers/staging/iio/Documentation/lsiio.c rename to tools/iio/lsiio.c -- 2.39.5