* [PATCH] iio: multiplexer: Remove an unused field in struct mux
@ 2024-05-01 9:41 Christophe JAILLET
2024-05-04 11:41 ` Jonathan Cameron
0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2024-05-01 9:41 UTC (permalink / raw)
To: Peter Rosin, Jonathan Cameron, Lars-Peter Clausen
Cc: linux-kernel, kernel-janitors, Christophe JAILLET, linux-iio
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(-)
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;
--
2.44.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] iio: multiplexer: Remove an unused field in struct mux
2024-05-01 9:41 [PATCH] iio: multiplexer: Remove an unused field in struct mux Christophe JAILLET
@ 2024-05-04 11:41 ` Jonathan Cameron
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2024-05-04 11:41 UTC (permalink / raw)
To: Christophe JAILLET
Cc: Peter Rosin, Lars-Peter Clausen, linux-kernel, kernel-janitors,
linux-iio
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-04 11:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 9:41 [PATCH] iio: multiplexer: Remove an unused field in struct mux Christophe JAILLET
2024-05-04 11:41 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox