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>
.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
*
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;