Skip to contentSkip to conversation

iio: multiplexer: Remove an unused field in struct mux

PATCH Applied Christophe JAILLET 2 participants 2 messages May 1, 2024 – May 4, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: multiplexer: Remove an unused field in struct mux

In "struct mux", the 'indio_dev' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

---
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(-)
drivers/iio/multiplexer/iio-mux.c +0 -1
index edd8c69f6d2e..2953403bef53 100644
@@ -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;
Signature · 1 line
2.44.0
maintainer Applied
#1 lore raw
Quoted 6 lines · On Wed, 1 May 2024 11:41:54 +0200 Christophe JAILLET…

In "struct mux", the 'indio_dev' field is unused.
Remove it.

Found with cppcheck, unusedStructMember.

Applied,

Thanks,

Quoted 21 lines

---
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(-)
drivers/iio/multiplexer/iio-mux.c +0 -1
index edd8c69f6d2e..2953403bef53 100644
@@ -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;