summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2016-10-08 17:39:03 +0100
committerJonathan Cameron <jic23@kernel.org>2016-10-23 19:33:58 +0100
commitd1bf1a865fe6b391208efab532b1e6fc912e5bed (patch)
tree906651cc7c01756bd46f266677ff54098838f4a9
parentced5c03d360aeebaac6faa7dd8d6d0a77733ab16 (diff)
downloadlinux-d1bf1a865fe6b391208efab532b1e6fc912e5bed.tar.gz
linux-d1bf1a865fe6b391208efab532b1e6fc912e5bed.tar.bz2
linux-d1bf1a865fe6b391208efab532b1e6fc912e5bed.zip
staging:iio:accel:sca3000 drop sca3000_register_ring_funcs
This was needed when the buffer support was optional. Pointless wrapper now so drop it. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
-rw-r--r--drivers/staging/iio/accel/sca3000.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/iio/accel/sca3000.c b/drivers/staging/iio/accel/sca3000.c
index 62ab1aef2528..36a52d02ee0e 100644
--- a/drivers/staging/iio/accel/sca3000.c
+++ b/drivers/staging/iio/accel/sca3000.c
@@ -1504,11 +1504,6 @@ static const struct iio_buffer_setup_ops sca3000_ring_setup_ops = {
.postdisable = &sca3000_hw_ring_postdisable,
};
-static void sca3000_register_ring_funcs(struct iio_dev *indio_dev)
-{
- indio_dev->setup_ops = &sca3000_ring_setup_ops;
-}
-
/**
* sca3000_clean_setup() get the device into a predictable state
*
@@ -1631,7 +1626,7 @@ static int sca3000_probe(struct spi_device *spi)
if (ret)
goto error_unregister_dev;
}
- sca3000_register_ring_funcs(indio_dev);
+ indio_dev->setup_ops = &sca3000_ring_setup_ops;
ret = sca3000_clean_setup(st);
if (ret)
goto error_free_irq;