2017-07-16 23:34:29

by Stefan Brüns

[permalink] [raw]
Subject: [PATCH 1/2] iio: Documentation: Add missing documentation for power attribute

Commit c43a102e67db ("iio: ina2xx: add support for TI INA2xx Power Monitors")
introduced the in_powerY_raw attribute, but omitted the corresponding
documentation.

The description is correct for the INA2xx and the MAX9611 IIO drivers.

Signed-off-by: Stefan Brüns <[email protected]>
---
Documentation/ABI/testing/sysfs-bus-iio | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 2db2cdf42d54..7eead5f97e02 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -119,6 +119,15 @@ Description:
unique to allow association with event codes. Units after
application of scale and offset are milliamps.

+What: /sys/bus/iio/devices/iio:deviceX/in_powerY_raw
+KernelVersion: 4.5
+Contact: [email protected]
+Description:
+ Raw (unscaled no bias removal etc.) power measurement from
+ channel Y. The number must always be specified and
+ unique to allow association with event codes. Units after
+ application of scale and offset are milliwatts.
+
What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
KernelVersion: 3.2
Contact: [email protected]
--
2.13.2


2017-07-17 20:56:31

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH 1/2] iio: Documentation: Add missing documentation for power attribute

On Mon, 17 Jul 2017 01:34:09 +0200
Stefan Brüns <[email protected]> wrote:

> Commit c43a102e67db ("iio: ina2xx: add support for TI INA2xx Power Monitors")
> introduced the in_powerY_raw attribute, but omitted the corresponding
> documentation.
>
> The description is correct for the INA2xx and the MAX9611 IIO drivers.
>
> Signed-off-by: Stefan Brüns <[email protected]>
Applied to the togreg branch of iio.git - initially pushed out
as testing.

Thanks,

Jonathan
> ---
> Documentation/ABI/testing/sysfs-bus-iio | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 2db2cdf42d54..7eead5f97e02 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -119,6 +119,15 @@ Description:
> unique to allow association with event codes. Units after
> application of scale and offset are milliamps.
>
> +What: /sys/bus/iio/devices/iio:deviceX/in_powerY_raw
> +KernelVersion: 4.5
> +Contact: [email protected]
> +Description:
> + Raw (unscaled no bias removal etc.) power measurement from
> + channel Y. The number must always be specified and
> + unique to allow association with event codes. Units after
> + application of scale and offset are milliwatts.
> +
> What: /sys/bus/iio/devices/iio:deviceX/in_capacitanceY_raw
> KernelVersion: 3.2
> Contact: [email protected]