linux-stable/drivers/iio/accel
Alexandru Ardelean 2e2366c2d1 iio: cros_ec: unify hw fifo attributes into the core file
The intent here is to minimize the use of iio_buffer_set_attrs(). Since we
are planning to add support for multiple IIO buffers per IIO device, the
issue has to do with:
1. Accessing 'indio_dev->buffer' directly (as is done with
   'iio_buffer_set_attrs(indio_dev->buffer, <attrs>)').
2. The way that the buffer attributes would get handled or expanded when
   there are more buffers per IIO device. Current a sysfs kobj_type expands
   into a 'device' object that expands into an 'iio_dev' object.
   We will need to change this, so that the sysfs attributes for IIO
   buffers expand into IIO buffers at some point.

Right now, the current IIO framework works fine for the
'1 IIO device == 1 IIO buffer' case (that is now).

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20200923130339.997902-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-09-29 17:27:07 +01:00
..
adis16201.c iio: adis16201: Use Managed device functions 2020-09-16 19:06:07 +01:00
adis16209.c iio: adis16209: Use Managed device functions 2020-09-16 19:06:08 +01:00
adxl345.h
adxl345_core.c Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
adxl345_i2c.c
adxl345_spi.c
adxl372.c iio: accel: adxl372: Add support for FIFO peak mode 2020-09-03 19:40:56 +01:00
adxl372.h
adxl372_i2c.c iio: adxl372_i2c: Add OF device ID table 2020-08-22 10:53:16 +01:00
adxl372_spi.c iio: adxl372_spi: change indentation for of_table 2020-08-22 10:53:15 +01:00
bma180.c iio:accel:bma180: Fix use of true when should be iio_shared_by enum 2020-09-21 19:59:57 +01:00
bma220_spi.c iio: accel: bma220: Remove unneeded blank lines 2020-09-03 19:41:00 +01:00
bma400.h
bma400_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bma400_i2c.c
bma400_spi.c iio: accel: bma400: add support for bma400 spi 2020-06-14 11:49:16 +01:00
bmc150-accel-core.c iio:accel:bmc150-accel: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:51 +01:00
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
cros_ec_accel_legacy.c iio: cros_ec: unify hw fifo attributes into the core file 2020-09-29 17:27:07 +01:00
da280.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
da311.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dmard06.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dmard09.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dmard10.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hid-sensor-accel-3d.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Kconfig iio: accel: bma400: add support for bma400 spi 2020-06-14 11:49:16 +01:00
kxcjk-1013.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
kxsd9-i2c.c iio: accel: kxsd9-i2c: Use mod_devicetable.h and drop of_match_ptr macro 2020-04-25 15:31:34 +01:00
kxsd9-spi.c
kxsd9.c iio: accel: kxsd9: Fix alignment of local buffer. 2020-08-22 11:38:47 +01:00
kxsd9.h
Makefile iio: accel: bma400: add support for bma400 spi 2020-06-14 11:49:16 +01:00
mc3230.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mma7455.h
mma7455_core.c iio:accel:mma7455: Fix timestamp alignment and prevent data leak. 2020-08-22 11:38:52 +01:00
mma7455_i2c.c
mma7455_spi.c
mma7660.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mma8452.c Merge 5.9-rc5 into staging-next 2020-09-14 06:57:52 +02:00
mma9551.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mma9551_core.c
mma9551_core.h
mma9553.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
mxc4005.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mxc6255.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
sca3000.c iio: accel: sca3000: Fix 2 misspellings and demote nonconforming kerneldocs 2020-07-20 09:03:24 +01:00
ssp_accel_sensor.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
st_accel.h
st_accel_buffer.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
st_accel_core.c
st_accel_i2c.c
st_accel_spi.c
stk8ba50.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
stk8312.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00