summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlad Dogaru <vlad.dogaru@intel.com>2014-12-29 11:50:16 +0200
committerJonathan Cameron <jic23@kernel.org>2015-01-01 12:20:52 +0000
commit75d44ce08f3e5575c3060b04fa2abf99ba190284 (patch)
treeb9d0df7b66996a2fe49ea558f2363942452644dd
parente904ce7e26c6ae84e8fb08b53cd466c0470445fd (diff)
staging: iio: dummy: fix compile error when not using buffering
Commit 4ae03019923f ("staging:iio:dummy: Register same channels for device and buffer") has changed the number of parameters for iio_simple_dummy_configure_buffer() only for the IIO_SIMPLE_DUMMY_BUFFER case. Fix this by also changing the placeholder function declared in the header when buffering is not enabled. Signed-off-by: Vlad Dogaru <vlad.dogaru@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/staging/iio/iio_simple_dummy.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/iio/iio_simple_dummy.h b/drivers/staging/iio/iio_simple_dummy.h
index af7012618be6..34989bf248a7 100644
--- a/drivers/staging/iio/iio_simple_dummy.h
+++ b/drivers/staging/iio/iio_simple_dummy.h
@@ -117,8 +117,7 @@ enum iio_simple_dummy_scan_elements {
int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev);
void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev);
#else
-static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev,
- const struct iio_chan_spec *channels, unsigned int num_channels)
+static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
{
return 0;
};