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

iio: ABI: generalize shunt_resistor attribute

Move ABI documentation for custom shunt resistor attributes into the
generic iio documentation file. Exception for pac1934: leave it
untouched since it does not comply with common iio ABI generalization.

Signed-off-by: Matteo Martelli <matteomartelli3@gmail.com>
Link: https://patch.msgid.link/20240722-iio-pac1921-v3-2-05dc9916cb33@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Matteo Martelli and committed by
Jonathan Cameron
d3abae8c 1bba03b7

+8 -26
+8
Documentation/ABI/testing/sysfs-bus-iio
··· 2290 2290 Contact: linux-iio@vger.kernel.org 2291 2291 Description: 2292 2292 List of available timeout value for tap gesture confirmation. 2293 + 2294 + What: /sys/.../iio:deviceX/in_shunt_resistor 2295 + What: /sys/.../iio:deviceX/in_current_shunt_resistor 2296 + What: /sys/.../iio:deviceX/in_power_shunt_resistor 2297 + KernelVersion: 6.10 2298 + Contact: linux-iio@vger.kernel.org 2299 + Description: 2300 + The value of current sense resistor in Ohms.
-17
Documentation/ABI/testing/sysfs-bus-iio-adc-max9611
··· 1 - What: /sys/bus/iio/devices/iio:deviceX/in_power_shunt_resistor 2 - Date: March 2017 3 - KernelVersion: 4.12 4 - Contact: linux-iio@vger.kernel.org 5 - Description: The value of the shunt resistor used to compute power drain on 6 - common input voltage pin (RS+). In Ohms. 7 - 8 - What: /sys/bus/iio/devices/iio:deviceX/in_current_shunt_resistor 9 - Date: March 2017 10 - KernelVersion: 4.12 11 - Contact: linux-iio@vger.kernel.org 12 - Description: The value of the shunt resistor used to compute current flowing 13 - between RS+ and RS- voltage sense inputs. In Ohms. 14 - 15 - These attributes describe a single physical component, exposed as two distinct 16 - attributes as it is used to calculate two different values: power load and 17 - current flowing between RS+ and RS- inputs.
-9
Documentation/ABI/testing/sysfs-bus-iio-ina2xx-adc
··· 13 13 available for reading data. However, samples can be occasionally skipped 14 14 or repeated, depending on the beat between the capture and conversion 15 15 rates. 16 - 17 - What: /sys/bus/iio/devices/iio:deviceX/in_shunt_resistor 18 - Date: December 2015 19 - KernelVersion: 4.4 20 - Contact: linux-iio@vger.kernel.org 21 - Description: 22 - The value of the shunt resistor may be known only at runtime fom an 23 - eeprom content read by a client application. This attribute allows to 24 - set its value in ohms.