]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: multiplexer: Remove an unused field in struct mux
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 1 May 2024 09:41:54 +0000 (11:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2024 08:48:56 +0000 (09:48 +0100)
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>
drivers/iio/multiplexer/iio-mux.c

index edd8c69f6d2e1c9ffac0ddcf5f0b4a306bc2f2d9..2953403bef53bbe47a97a8ab1c475ed88d7f86d2 100644 (file)
@@ -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;