Antoniu Miclaus
7d34b4ad8c
ABI: testing: fix admv8818 attr description
...
Fix description of the filter_mode_available attribute by pointing to
the correct name of the attribute that can be written with valid values.
Fixes: bf92d87d7c ("iio:filter:admv8818: Add sysfs ABI documentation")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com >
Link: https://patch.msgid.link/20240702081851.4663-1-antoniu.miclaus@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-08-03 10:12:48 +01:00
Yasin Lee
60df548277
iio: proximity: Add driver support for TYHX's HX9023S capacitive proximity sensor
...
A SAR sensor from NanjingTianyihexin Electronics Ltd.
The device has the following entry points:
Usual frequency:
- sampling_frequency
Instant reading of current values for different sensors:
- in_proximity0_raw
- in_proximity1_raw
- in_proximity2_raw
- in_proximity3_raw
- in_proximity4_raw
and associated events in events/
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com >
Link: https://patch.msgid.link/20240702-add-tyhx-hx9023s-sensor-driver-v9-3-c030f1801d9b@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:13 +01:00
Yasin Lee
dc92642421
dt-bindings: iio: proximity: Add TYHX HX9023S
...
A capacitive proximity sensor
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com >
Link: https://patch.msgid.link/20240702-add-tyhx-hx9023s-sensor-driver-v9-2-c030f1801d9b@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:13 +01:00
Yasin Lee
8d1bae11ad
dt-bindings: vendor-prefixes: add tyhx
...
Add vendor prefix for NanjingTianyihexin Electronics Ltd.
http://www.tianyihexin.com
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Signed-off-by: Yasin Lee <yasin.lee.x@gmail.com >
Link: https://patch.msgid.link/20240702-add-tyhx-hx9023s-sensor-driver-v9-1-c030f1801d9b@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:13 +01:00
Chen Ni
2903a2f260
iio: dac: ti-dac7311: Add check for spi_setup
...
Add check for the return value of spi_setup() and return the error
if it fails in order to catch the error.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn >
Link: https://patch.msgid.link/20240705084250.3006527-1-nichen@iscas.ac.cn
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:13 +01:00
Guillaume Stols
2956979dbd
iio: adc: ad7606: switch mutexes to guard
...
Switching to guard simplifies the code and avoids to take care to
unlock the mutex in case of premature return.
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
059fe4f8bb
iio: adc: ad7606: fix standby gpio state to match the documentation
...
The binding's documentation specifies that "As the line is active low, it
should be marked GPIO_ACTIVE_LOW". However, in the driver, it was handled
the opposite way. This commit sets the driver's behaviour in sync with the
documentation
Fixes: 722407a4e8 ("staging:iio:ad7606: Use GPIO descriptor API")
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
8dc4594b54
iio: adc: ad7606: fix oversampling gpio array
...
gpiod_set_array_value was misused here: the implementation relied on the
assumption that an unsigned long was required for each gpio, while the
function expects a bit array stored in "as much unsigned long as needed
for storing one bit per GPIO", i.e it is using a bit field.
This leaded to incorrect parameter passed to gpiod_set_array_value, that
would set 1 value instead of 3.
It also prevents to select the software mode correctly for the AD7606B.
Fixes: d2a415c86c ("iio: adc: ad7606: Add support for AD7606B ADC")
Fixes: 41f71e5e7d ("staging: iio: adc: ad7606: Use find_closest() macro")
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
8d71a5d868
dt-bindings: iio: adc: adi,ad7606: add conditions
...
Since the driver supports several parts that present differences in
their layout and behaviour, it is necessary to describe the differences
from one chip to another.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
746bb410aa
dt-bindings: iio: adc: adi,ad7606: fix example
...
Example uses adi,ad7606-8 as compatible, but adi,sw-mode is not
available for it. So remove this property from example.
Acked-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
7248e0995b
dt-bindings: iio: adc: adi,ad7606: add supply properties
...
Add voltage supplies
Acked-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
786cbd7c2d
dt-bindings: iio: adc: adi,ad7606: improve descriptions
...
Reword a few descriptions, and normalize the text width to 80 characters.
Reviewed-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Guillaume Stols
a3b4a48fd5
dt-bindings: iio: adc: adi,ad7606: normalize textwidth
...
Normalize textwidth to 80 columns on the descriptions.
Acked-by: Rob Herring (Arm) <robh@kernel.org >
Signed-off-by: Guillaume Stols <gstols@baylibre.com >
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Nuno Sa
43ebc481ab
iio: adc: ad9467: support new parts
...
Add support for new devices:
* Analog Devices AD9652 16-bit 310 MSPS ADC;
* Analog Devices AD9643 14-Bit, 170/210/250 MSPS ADC;
* Analog Devices AD9649 14-bit 20/40/65/80 MSPS ADC.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-5-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:12 +01:00
Nuno Sa
f9c75d43f4
dt-bindings: adc: ad9467: support new parts
...
Add support for new devices:
* Analog Devices AD9652 16-bit 310 MSPS ADC;
* Analog Devices AD9643 14-Bit, 170/210/250 MSPS ADC;
* Analog Devices AD9649 14-bit 20/40/65/80 MSPS ADC.
Note all these parts have subtle differences in their programming model
(different scales, number of channels, etc..) so fallbacks are not
possible.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-4-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Nuno Sa
b92f94f748
iio: adc: ad9467: don't allow reading vref if not available
...
If there's only one possible scale, there's no way to change the Vref
select in the device so avoid reading the register in ad9467_get_scale().
In this case, it makes no sense to provide the .read_available()
callback nor allowing for writing the scale attribute.
Note this is in preparation for supporting a new device that only has
one possible scale.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-3-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Nuno Sa
bdc87f98ca
iio: adc: ad9467: add new chip_info variables
...
Add new variables to the per chip info structure:
* test_points: Number of valid test points for calibration;
* has_dco_invert: Supports inverting DCO (Data clock output) polarity;
* dco_en: Specicic mask to enable DCO delays.
This is in preparation for supporting new parts with subtle differences
in how to configure the hardware.
Note that with the new test_points variable, we also add a new
calib_map_size to 'struct ad9467_state' so we know our map size
depending on how many test points we have and if we can run the
calibration in the inverted state or not.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-2-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Nuno Sa
7394a155dd
iio: adc: ad9467: support multiple channels calibration
...
The calibration process mixes the support for calibrating multiple
channels with only having one channel. Some paths do have 'num_channels'
into account while others don't.
As of now, the driver only supports devices with one channel so the
above is not really a problem. That said, we'll add support for devices
with more than one channel, hence let's properly make the calibration
process to work with it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240704-dev-iio-ad9467-new-devs-v1-1-f1adfee921f7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Krzysztof Kozlowski
1de9c3c706
iio: adc: ti-tsc2046: simplify with cleanup.h
...
Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de >
Link: https://patch.msgid.link/20240705-cleanup-h-iio-v1-5-77114c7e84c5@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Krzysztof Kozlowski
adcba9cd61
iio: adc: max1363: simplify with cleanup.h
...
Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240705-cleanup-h-iio-v1-4-77114c7e84c5@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Krzysztof Kozlowski
e3749aae6e
iio: adc: at91: simplify with cleanup.h
...
Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://patch.msgid.link/20240705-cleanup-h-iio-v1-3-77114c7e84c5@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Krzysztof Kozlowski
c74f7c09b5
iio: adc: ad7280a: simplify with cleanup.h
...
Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240705-cleanup-h-iio-v1-2-77114c7e84c5@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:11 +01:00
Krzysztof Kozlowski
f44c314faa
iio: accel: bma400: simplify with cleanup.h
...
Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org >
Link: https://patch.msgid.link/20240705-cleanup-h-iio-v1-1-77114c7e84c5@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
244315b317
iio: pressure: bmp280: Constify struct regmap_bus
...
`bmp280_regmap_bus` and `bmp380_regmap_bus` are conditionally assigned
to `bmp_regmap_bus`, which is only used to pass the struct as a
read-only member.
Add the const modifier to the structs and the pointer to move the data
to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Tested-By: Vasileios Amoiridis <vassilisamir@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-10-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
9abedf82c7
iio: light: gp2ap002: Constify struct regmap_bus
...
`gp2ap002_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-9-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
36a697964d
iio: imu: bno055: Constify struct regmap_bus
...
`bno055_ser_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-8-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
b6f59c4500
iio: imu: bmi323: Constify struct regmap_bus
...
`bmi323_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-7-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
840f7410fd
iio: dac: ltc2688: Constify struct regmap_bus
...
`ltc2688_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-6-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
297fef494d
iio: chemical: bme680: Constify struct regmap_bus
...
`bme680_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Tested-By: Vasileios Amoiridis <vassilisamir@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-5-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
2a57a7df9f
iio: adc: ad7091r8: Constify struct regmap_bus
...
`ad7091r8_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Reviewed-by: Marcelo Schmitt <marcelo.schmitt@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-4-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
48259265a3
iio: accel: bmi088: Constify struct regmap_bus
...
`bmi088_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-3-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:10 +01:00
Javier Carrasco
867ade7dc0
iio: accel: bma400: Constify struct regmap_bus
...
`bma400_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-2-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Javier Carrasco
c922c634bd
iio: accel: adxl367: Constify struct regmap_bus
...
`adxl367_spi_regmap_bus` is not modified and can be declared as const to
move its data to a read-only section.
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com >
Link: https://patch.msgid.link/20240703-iio-cont-regmap_bus-v1-1-34754f355b65@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
07465fe1b7
iio: imu: adis16480: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-20-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
d86db53230
iio: imu: adis16475: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-19-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
f3184b2f2c
iio: adc: at91_adc: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-18-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
f726ebe7c2
iio: adc: ad_sigma_delta: use new '.masklength' accessors
...
Make use of iio_get_masklength) and iio_for_each_active_channel() to
access '.masklength' so it can be annotated as __private when there
are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-17-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
972df0e9a0
iio: adc: ad799x: make use of iio_get_masklength()
...
Use iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-16-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
abcc9b8a9a
iio: adc: ad7298: make use of iio_get_masklength()
...
Use iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-15-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:09 +01:00
Nuno Sa
3dface1fb5
iio: adc: ad7266: make use of iio_get_masklength()
...
Use iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-14-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
d637a64db3
iio: accel: stk8ba50: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-13-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
5f38d117f5
iio: accel: stk8312: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-12-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
cf7ec085f5
iio: accel: sca3300: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-11-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
e5003b6098
iio: accel: msa311: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-10-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
c7d289eb10
iio: accel: fxls8962af-core: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there
are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-9-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
bac3b7c43d
iio: accel: cros_ec_accel_legacy: make use of iio_get_masklength()
...
Ue iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-8-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
84550e2682
iio: accel: bmc150-accel-core: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-7-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:08 +01:00
Nuno Sa
1a290e410c
iio: accel: bma180: make use of iio_for_each_active_channel()
...
Use iio_for_each_active_channel() to iterate over active channels
accessing '.masklength' so it can be annotated as __private when there are
no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-6-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:07 +01:00
Nuno Sa
6bb0d80e88
iio: accel: adxl372: make use of iio_get_masklength()
...
Use iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-5-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:07 +01:00
Nuno Sa
5d8c3c240f
iio: accel: adxl367: make use of iio_get_masklength()
...
Use iio_get_masklength() to access '.masklength' so it can be annotated
as __private when there are no more direct users of it.
Signed-off-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: Alexandru Ardelean <aardelean@baylibre.com >
Link: https://patch.msgid.link/20240702-dev-iio-masklength-private-v1-4-98193bf536a6@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-07-29 20:31:07 +01:00