staging: iio: dummy: fix compile error when not using buffering

Commit 4ae0301992 ("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>
This commit is contained in:
Vlad Dogaru 2014-12-29 11:50:16 +02:00 committed by Jonathan Cameron
parent e904ce7e26
commit 75d44ce08f
1 changed files with 1 additions and 2 deletions

View File

@ -117,8 +117,7 @@ enum iio_simple_dummy_scan_elements {
int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev); int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev);
void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev); void iio_simple_dummy_unconfigure_buffer(struct iio_dev *indio_dev);
#else #else
static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev, static inline int iio_simple_dummy_configure_buffer(struct iio_dev *indio_dev)
const struct iio_chan_spec *channels, unsigned int num_channels)
{ {
return 0; return 0;
}; };