Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging:iio:simple-dummy: Remove redundant call to iio_sw_buffer_preenable()

The equivalent of iio_sw_buffer_preenable() is now done in the IIO buffer core,
so there is no need to do this from the driver anymore.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>

authored by

Lars-Peter Clausen and committed by
Jonathan Cameron
29da1472 71978121

-8
-8
drivers/staging/iio/iio_simple_dummy_buffer.c
··· 99 99 100 100 static const struct iio_buffer_setup_ops iio_simple_dummy_buffer_setup_ops = { 101 101 /* 102 - * iio_sw_buffer_preenable: 103 - * Generic function for equal sized ring elements + 64 bit timestamp 104 - * Assumes that any combination of channels can be enabled. 105 - * Typically replaced to implement restrictions on what combinations 106 - * can be captured (hardware scan modes). 107 - */ 108 - .preenable = &iio_sw_buffer_preenable, 109 - /* 110 102 * iio_triggered_buffer_postenable: 111 103 * Generic function that simply attaches the pollfunc to the trigger. 112 104 * Replace this to mess with hardware state before we attach the