summaryrefslogtreecommitdiffstats
path: root/drivers/staging/iio/Documentation/generic_buffer.c
diff options
context:
space:
mode:
authorRoberta Dobrescu2015-02-26 09:49:24 +0100
committerJonathan Cameron2015-03-09 18:14:33 +0100
commitbdcb31d048074d82ed7c50ed45f737d7637f1224 (patch)
treeea32680b928389e82e51a9fa547e043c9e2d854b /drivers/staging/iio/Documentation/generic_buffer.c
parentstaging: iio: Documentation: iio_event_monitor: Include linux/iio/types.h (diff)
downloadkernel-qcow2-linux-bdcb31d048074d82ed7c50ed45f737d7637f1224.tar.gz
kernel-qcow2-linux-bdcb31d048074d82ed7c50ed45f737d7637f1224.tar.xz
kernel-qcow2-linux-bdcb31d048074d82ed7c50ed45f737d7637f1224.zip
staging: iio: Documentation: Introduce iio_utils.c
This patch removes inline functions from iio_utils.h in order to clean the code. iio_utils.c contains the implementation of the functions used by iio_event_monitor.c, lsiio.c or generic_buffer.c and iio_utils.h contains the declarations of these functions. Since iio_utils.h is modified, generic_buffer.c and iio_event_monitor.c must include stdlib.h. Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/Documentation/generic_buffer.c')
-rw-r--r--drivers/staging/iio/Documentation/generic_buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/generic_buffer.c b/drivers/staging/iio/Documentation/generic_buffer.c
index de4647e2495e..01266c2556da 100644
--- a/drivers/staging/iio/Documentation/generic_buffer.c
+++ b/drivers/staging/iio/Documentation/generic_buffer.c
@@ -21,6 +21,7 @@
#define _GNU_SOURCE
#include <unistd.h>
+#include <stdlib.h>
#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>