diff options
-rw-r--r-- | include/linux/iio/trigger.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/iio/trigger.h b/include/linux/iio/trigger.h index 20239da1d0f7..c66e0a96f6e8 100644 --- a/include/linux/iio/trigger.h +++ b/include/linux/iio/trigger.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #ifndef _IIO_TRIGGER_H_ | 12 | #ifndef _IIO_TRIGGER_H_ |
13 | #define _IIO_TRIGGER_H_ | 13 | #define _IIO_TRIGGER_H_ |
14 | 14 | ||
15 | #ifdef CONFIG_IIO_TRIGGER | ||
15 | struct iio_subirq { | 16 | struct iio_subirq { |
16 | bool enabled; | 17 | bool enabled; |
17 | }; | 18 | }; |
@@ -117,4 +118,8 @@ irqreturn_t iio_trigger_generic_data_rdy_poll(int irq, void *private); | |||
117 | __printf(1, 2) struct iio_trigger *iio_trigger_alloc(const char *fmt, ...); | 118 | __printf(1, 2) struct iio_trigger *iio_trigger_alloc(const char *fmt, ...); |
118 | void iio_trigger_free(struct iio_trigger *trig); | 119 | void iio_trigger_free(struct iio_trigger *trig); |
119 | 120 | ||
121 | #else | ||
122 | struct iio_trigger; | ||
123 | struct iio_trigger_ops; | ||
124 | #endif | ||
120 | #endif /* _IIO_TRIGGER_H_ */ | 125 | #endif /* _IIO_TRIGGER_H_ */ |