Skip to content

Commit

Permalink
staging: iio: Documentation: Introduce iio_utils.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
robertaDobrescu authored and jic23 committed Mar 9, 2015
1 parent 9576385 commit bdcb31d
Show file tree
Hide file tree
Showing 4 changed files with 679 additions and 638 deletions.
1 change: 1 addition & 0 deletions drivers/staging/iio/Documentation/generic_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#define _GNU_SOURCE

#include <unistd.h>
#include <stdlib.h>
#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/iio/Documentation/iio_event_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define _GNU_SOURCE

#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <errno.h>
Expand Down
Loading

0 comments on commit bdcb31d

Please sign in to comment.