diff mbox series

iio: multiplexer: Remove an unused field in struct mux

Message ID 7bb04abdc2815caf090a6c9ecab2a51d837792a7.1714556499.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Accepted
Headers show
Series iio: multiplexer: Remove an unused field in struct mux | expand

Commit Message

Christophe JAILLET May 1, 2024, 9:41 a.m. UTC
In "struct mux", the 'indio_dev' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only.

It was added in the initial commit 7ba9df54b091 ("iio: multiplexer: new iio
category and iio-mux driver") but was never used.
---
 drivers/iio/multiplexer/iio-mux.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Jonathan Cameron May 4, 2024, 11:41 a.m. UTC | #1
On Wed,  1 May 2024 11:41:54 +0200
Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:

> In "struct mux", the 'indio_dev' field is unused.
> Remove it.
> 
> Found with cppcheck, unusedStructMember.
> 
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Applied,

Thanks,

> ---
> Compile tested only.
> 
> It was added in the initial commit 7ba9df54b091 ("iio: multiplexer: new iio
> category and iio-mux driver") but was never used.
> ---
>  drivers/iio/multiplexer/iio-mux.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/multiplexer/iio-mux.c b/drivers/iio/multiplexer/iio-mux.c
> index edd8c69f6d2e..2953403bef53 100644
> --- a/drivers/iio/multiplexer/iio-mux.c
> +++ b/drivers/iio/multiplexer/iio-mux.c
> @@ -30,7 +30,6 @@ struct mux {
>  	int cached_state;
>  	struct mux_control *control;
>  	struct iio_channel *parent;
> -	struct iio_dev *indio_dev;
>  	struct iio_chan_spec *chan;
>  	struct iio_chan_spec_ext_info *ext_info;
>  	struct mux_child *child;
diff mbox series

Patch

diff --git a/drivers/iio/multiplexer/iio-mux.c b/drivers/iio/multiplexer/iio-mux.c
index edd8c69f6d2e..2953403bef53 100644
--- a/drivers/iio/multiplexer/iio-mux.c
+++ b/drivers/iio/multiplexer/iio-mux.c
@@ -30,7 +30,6 @@  struct mux {
 	int cached_state;
 	struct mux_control *control;
 	struct iio_channel *parent;
-	struct iio_dev *indio_dev;
 	struct iio_chan_spec *chan;
 	struct iio_chan_spec_ext_info *ext_info;
 	struct mux_child *child;