summaryrefslogtreecommitdiff
path: root/drivers/staging/iio/Documentation/iio_event_monitor.c
diff options
context:
space:
mode:
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>2015-02-26 08:49:24 (GMT)
committerJonathan Cameron <jic23@kernel.org>2015-03-09 17:14:33 (GMT)
commitbdcb31d048074d82ed7c50ed45f737d7637f1224 (patch)
treeea32680b928389e82e51a9fa547e043c9e2d854b /drivers/staging/iio/Documentation/iio_event_monitor.c
parent95763859c0205417cf94966f87c3839e54a8005d (diff)
downloadlinux-bdcb31d048074d82ed7c50ed45f737d7637f1224.tar.xz
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/iio_event_monitor.c')
-rw-r--r--drivers/staging/iio/Documentation/iio_event_monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/iio_event_monitor.c b/drivers/staging/iio/Documentation/iio_event_monitor.c
index 019a6e5..f19cff1 100644
--- a/drivers/staging/iio/Documentation/iio_event_monitor.c
+++ b/drivers/staging/iio/Documentation/iio_event_monitor.c
@@ -19,6 +19,7 @@
#define _GNU_SOURCE
#include <unistd.h>
+#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <errno.h>