[PATCH v2 04/13] iio: adc: ad9467: remove unused output_mode field

Antoniu Miclaus posted 13 patches 6 days, 4 hours ago
[PATCH v2 04/13] iio: adc: ad9467: remove unused output_mode field
Posted by Antoniu Miclaus 6 days, 4 hours ago
Remove unused output_mode field from ad9467_state struct.
The field is declared but never accessed in the driver.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad9467.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
index 9cfe66425d4e..df0c05e7c60f 100644
--- a/drivers/iio/adc/ad9467.c
+++ b/drivers/iio/adc/ad9467.c
@@ -176,7 +176,6 @@ struct ad9467_state {
 	struct clk *clk;
 	/* used for debugfs */
 	struct ad9467_chan_test_mode *chan_test;
-	unsigned int output_mode;
 	unsigned int (*scales)[2];
 	/*
 	 * Times 2 because we may also invert the signal polarity and run the
-- 
2.43.0
Re: [PATCH v2 04/13] iio: adc: ad9467: remove unused output_mode field
Posted by Tomas Melin 6 days, 3 hours ago

On 02/02/2026 13:25, Antoniu Miclaus wrote:
> Remove unused output_mode field from ad9467_state struct.
> The field is declared but never accessed in the driver.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>

Reviewed-by: Tomas Melin <tomas.melin@vaisala.com>
> ---
>  drivers/iio/adc/ad9467.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
> index 9cfe66425d4e..df0c05e7c60f 100644
> --- a/drivers/iio/adc/ad9467.c
> +++ b/drivers/iio/adc/ad9467.c
> @@ -176,7 +176,6 @@ struct ad9467_state {
>  	struct clk *clk;
>  	/* used for debugfs */
>  	struct ad9467_chan_test_mode *chan_test;
> -	unsigned int output_mode;
>  	unsigned int (*scales)[2];
>  	/*
>  	 * Times 2 because we may also invert the signal polarity and run the