mirror of https://gitee.com/openkylin/linux.git
iio:gp2ap020a00f: 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> Cc: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
6c0743ed99
commit
1e61fb7b19
|
@ -1483,7 +1483,6 @@ static int gp2ap020a00f_buffer_predisable(struct iio_dev *indio_dev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
|
static const struct iio_buffer_setup_ops gp2ap020a00f_buffer_setup_ops = {
|
||||||
.preenable = &iio_sw_buffer_preenable,
|
|
||||||
.postenable = &gp2ap020a00f_buffer_postenable,
|
.postenable = &gp2ap020a00f_buffer_postenable,
|
||||||
.predisable = &gp2ap020a00f_buffer_predisable,
|
.predisable = &gp2ap020a00f_buffer_predisable,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue