[RFC PATCH v1 1/9] iio: ABI: Drop unused in_energy_input

Marcelo Schmitt posted 9 patches 2 weeks, 6 days ago
[RFC PATCH v1 1/9] iio: ABI: Drop unused in_energy_input
Posted by Marcelo Schmitt 2 weeks, 6 days ago
No IIO driver declares a channel of type IIO_ENERGY with info_mask
containing IIO_CHAN_INFO_PROCESSED. Thus, in_energy_input has never been
seen in user space.

Fixes: 72c66644673a ("iio: core: Introduce ENERGY channel type")
Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
---
Added a fix tag though not sure it's needed/desired since it might not be worth
to backport documentation?

 Documentation/ABI/testing/sysfs-bus-iio | 1 -
 1 file changed, 1 deletion(-)

diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
index 5f87dcee78f7..aec39b8e3345 100644
--- a/Documentation/ABI/testing/sysfs-bus-iio
+++ b/Documentation/ABI/testing/sysfs-bus-iio
@@ -1601,7 +1601,6 @@ Description:
 		For a list of available output power modes read
 		in_accel_power_mode_available.
 
-What:		/sys/.../iio:deviceX/in_energy_input
 What:		/sys/.../iio:deviceX/in_energy_raw
 What:		/sys/.../iio:deviceX/in_energyY_active_raw
 What:		/sys/.../iio:deviceX/in_energyY_reactive_raw
-- 
2.51.0
Re: [RFC PATCH v1 1/9] iio: ABI: Drop unused in_energy_input
Posted by Jonathan Cameron 1 week ago
On Sun, 18 Jan 2026 15:18:57 -0300
Marcelo Schmitt <marcelo.schmitt1@gmail.com> wrote:

> No IIO driver declares a channel of type IIO_ENERGY with info_mask
> containing IIO_CHAN_INFO_PROCESSED. Thus, in_energy_input has never been
> seen in user space.
> 
> Fixes: 72c66644673a ("iio: core: Introduce ENERGY channel type")

I don't think the fixes tag makes sense.  This is just tidy up of
unused ABI, because why document what doesn't exist?

> Signed-off-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
> ---
> Added a fix tag though not sure it's needed/desired since it might not be worth
> to backport documentation?
> 
>  Documentation/ABI/testing/sysfs-bus-iio | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/Documentation/ABI/testing/sysfs-bus-iio b/Documentation/ABI/testing/sysfs-bus-iio
> index 5f87dcee78f7..aec39b8e3345 100644
> --- a/Documentation/ABI/testing/sysfs-bus-iio
> +++ b/Documentation/ABI/testing/sysfs-bus-iio
> @@ -1601,7 +1601,6 @@ Description:
>  		For a list of available output power modes read
>  		in_accel_power_mode_available.
>  
> -What:		/sys/.../iio:deviceX/in_energy_input
>  What:		/sys/.../iio:deviceX/in_energy_raw
>  What:		/sys/.../iio:deviceX/in_energyY_active_raw
>  What:		/sys/.../iio:deviceX/in_energyY_reactive_raw