Skip to content

Commit

Permalink
staging:iio: move iio data return types into types.h for use by inkern
Browse files Browse the repository at this point in the history
In kernel interfaces need these, so make them available.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Feb 24, 2012
1 parent e27d75d commit ad2c08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,6 @@ static inline s64 iio_get_time_ns(void)
#define INDIO_ALL_BUFFER_MODES \
(INDIO_BUFFER_TRIGGERED | INDIO_BUFFER_HARDWARE)

/* Vast majority of this is set by the industrialio subsystem on a
* call to iio_device_register. */
#define IIO_VAL_INT 1
#define IIO_VAL_INT_PLUS_MICRO 2
#define IIO_VAL_INT_PLUS_NANO 3

struct iio_trigger; /* forward declaration */
struct iio_dev;

Expand Down
4 changes: 4 additions & 0 deletions drivers/staging/iio/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ enum iio_modifier {
IIO_MOD_LIGHT_IR,
};

#define IIO_VAL_INT 1
#define IIO_VAL_INT_PLUS_MICRO 2
#define IIO_VAL_INT_PLUS_NANO 3

#endif /* _IIO_TYPES_H_ */

0 comments on commit ad2c08b

Please sign in to comment.