]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: magnetometer: tmag5273: remove unused IIO_CHAN_INFO_PROCESSED handling
authorDixit Parmar <dixitparmar19@gmail.com>
Wed, 10 Sep 2025 14:06:50 +0000 (19:36 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:06 +0000 (19:47 +0100)
The tmag5273 driver does not advertise IIO_CHAN_INFO_PROCESSED in its
info_mask_* fields, so the corresponding case in read_raw()/write_raw()
is never used.
Drop the dead code to reduce unnecessary branches and improve clarity.

Signed-off-by: Dixit Parmar <dixitparmar19@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/tmag5273.c

index bd3c50157843489a03e7bd0edbf15c0fac449d40..2adc3c036ab4947c0188e8adf36b9745fdd66103 100644 (file)
@@ -287,7 +287,6 @@ static int tmag5273_read_raw(struct iio_dev *indio_dev,
        int ret;
 
        switch (mask) {
-       case IIO_CHAN_INFO_PROCESSED:
        case IIO_CHAN_INFO_RAW:
                ret = pm_runtime_resume_and_get(data->dev);
                if (ret < 0)