Commit d1bf1a86 authored by Jonathan Cameron's avatar Jonathan Cameron

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: default avatarJonathan Cameron <jic23@kernel.org>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent ced5c03d
...@@ -1504,11 +1504,6 @@ static const struct iio_buffer_setup_ops sca3000_ring_setup_ops = { ...@@ -1504,11 +1504,6 @@ static const struct iio_buffer_setup_ops sca3000_ring_setup_ops = {
.postdisable = &sca3000_hw_ring_postdisable, .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 * sca3000_clean_setup() get the device into a predictable state
* *
...@@ -1631,7 +1626,7 @@ static int sca3000_probe(struct spi_device *spi) ...@@ -1631,7 +1626,7 @@ static int sca3000_probe(struct spi_device *spi)
if (ret) if (ret)
goto error_unregister_dev; goto error_unregister_dev;
} }
sca3000_register_ring_funcs(indio_dev); indio_dev->setup_ops = &sca3000_ring_setup_ops;
ret = sca3000_clean_setup(st); ret = sca3000_clean_setup(st);
if (ret) if (ret)
goto error_free_irq; goto error_free_irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment