staging:iio: move iio data return types into types.h for use by inkern
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 15 Feb 2012 19:48:02 +0000 (19:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Feb 2012 20:10:03 +0000 (12:10 -0800)
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>
drivers/staging/iio/iio.h
drivers/staging/iio/types.h

index 478dbe5924cbd4326fb8487d72c010bf6b597663..9459c17dee48e3d1f837d441bcf54a09bc194244 100644 (file)
@@ -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;
 
index b7d26474ad064e6dd4a15480f7eebc6978c10617..0c32136669019b2092e60c8d6233587eb3d00bf9 100644 (file)
@@ -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_ */