summaryrefslogtreecommitdiff
path: root/drivers/iio/multiplexer/iio-mux.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2024-05-01 12:41:54 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-05-27 11:48:56 +0300
commit2625b8eaccae72d4f9b4992f92aaf2b7b5b89f73 (patch)
tree38dc740ec5a1d8b4e4cfa6bec7d49cbf97ae040b /drivers/iio/multiplexer/iio-mux.c
parentf8107cd6f9b9279544f6ee917919b15d95c6385c (diff)
downloadlinux-2625b8eaccae72d4f9b4992f92aaf2b7b5b89f73.tar.xz
iio: multiplexer: Remove an unused field in struct mux
In "struct mux", the 'indio_dev' field is unused. Remove it. Found with cppcheck, unusedStructMember. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/7bb04abdc2815caf090a6c9ecab2a51d837792a7.1714556499.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/multiplexer/iio-mux.c')
-rw-r--r--drivers/iio/multiplexer/iio-mux.c1
1 files changed, 0 insertions, 1 deletions
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;