]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: adc: ad7173: remove unused field
authorDavid Lechner <dlechner@baylibre.com>
Mon, 4 Nov 2024 19:42:14 +0000 (13:42 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Dec 2024 17:11:00 +0000 (17:11 +0000)
Remove the unused chan_reg field from struct ad7173_channel. This was
set but never read.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241104-iio-adc-ad7173-remove-unused-field-v1-1-da9500a48750@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7173.c

index 8a0c931ca83a83ad6302d7e90e834e09837c2f52..c5ac4b7e7c2c64afbae98bf80911ccc5de4d093a 100644 (file)
@@ -193,7 +193,6 @@ struct ad7173_channel_config {
 };
 
 struct ad7173_channel {
-       unsigned int chan_reg;
        unsigned int ain;
        struct ad7173_channel_config cfg;
 };
@@ -1316,7 +1315,6 @@ static int ad7173_fw_parse_channel_config(struct iio_dev *indio_dev)
                chan->address = chan_index;
                chan->scan_index = chan_index;
                chan->channel = ain[0];
-               chan_st_priv->chan_reg = chan_index;
                chan_st_priv->cfg.input_buf = st->info->has_input_buf;
                chan_st_priv->cfg.odr = 0;