iio: core: Simplify the registration of kfifo buffers
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 7 Feb 2022 14:38:39 +0000 (15:38 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 10 Apr 2022 15:25:46 +0000 (16:25 +0100)
commitf67c6c73cb07a4778425a2064640333ef7bfa42b
tree552d8976cbd3716475994464c0e503459f4e3306
parent51570c9d4b3a678f77a50ac139f67290e946ec86
iio: core: Simplify the registration of kfifo buffers

Among all the users of the kfifo buffers, no one uses the
INDIO_BUFFER_HARDWARE mode. So let's take this as a general rule and
simplify a little bit the internals - overall the documentation - by
eliminating unused specific cases. Use the INDIO_BUFFER_SOFTWARE mode by
default with kfifo buffers, which will basically mimic what all the "non
direct" modes do.

Cc: Benson Leung <bleung@chromium.org>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Jyoti Bhayana <jbhayana@google.com>
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Cc: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Cc: Michael Hennerich <Michael.Hennerich@analog.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20220207143840.707510-13-miquel.raynal@bootlin.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
18 files changed:
drivers/iio/accel/adxl367.c
drivers/iio/accel/fxls8962af-core.c
drivers/iio/accel/sca3000.c
drivers/iio/accel/ssp_accel_sensor.c
drivers/iio/adc/ina2xx-adc.c
drivers/iio/adc/ti_am335x_adc.c
drivers/iio/buffer/kfifo_buf.c
drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c
drivers/iio/common/scmi_sensors/scmi_iio.c
drivers/iio/gyro/ssp_gyro_sensor.c
drivers/iio/health/max30100.c
drivers/iio/health/max30102.c
drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c
drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c
drivers/iio/light/apds9960.c
drivers/staging/iio/impedance-analyzer/ad5933.c
include/linux/iio/kfifo_buf.h