浏览代码

staging: iio: iio_sw_ring_helper_state - add dummy case for no buffer builds.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Jonathan Cameron 15 年之前
父节点
当前提交
34f57cc789
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      drivers/staging/iio/ring_sw.h

+ 3 - 0
drivers/staging/iio/ring_sw.h

@@ -222,5 +222,8 @@ void iio_sw_trigger_bh_to_ring(struct work_struct *work_s);
 #else /* CONFIG_IIO_RING_BUFFER*/
 static inline void iio_ring_sw_register_funcs(struct iio_ring_access_funcs *ra)
 {};
+struct iio_sw_ring_helper_state {
+	struct iio_dev			*indio_dev;
+};
 #endif /* !CONFIG_IIO_RING_BUFFER */
 #endif /* _IIO_RING_SW_H_ */