From: Jonathan Cameron <jic23@cam.ac.uk>
Date: Thu, 29 Jul 2010 16:50:48 +0000 (+0100)
Subject: staging: iio: adis16350 add dummy ring functions for no ring build case
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=073e5371e253f80fb41cf915a0abd2f1b0e8d410;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git

staging: iio: adis16350 add dummy ring functions for no ring build case

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>
---

diff --git a/drivers/staging/iio/imu/adis16350.h b/drivers/staging/iio/imu/adis16350.h
index 738debaf877f..b00001e3edd0 100644
--- a/drivers/staging/iio/imu/adis16350.h
+++ b/drivers/staging/iio/imu/adis16350.h
@@ -165,5 +165,13 @@ adis16350_read_data_from_ring(struct device *dev,
 	return 0;
 }
 
+static inline int adis16350_configure_ring(struct iio_dev *indio_dev)
+{
+	return 0;
+}
+
+static inline void adis16350_unconfigure_ring(struct iio_dev *indio_dev)
+{
+}
 #endif /* CONFIG_IIO_RING_BUFFER */
 #endif /* SPI_ADIS16350_H_ */