]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling
authorDixit Parmar <dixitparmar19@gmail.com>
Wed, 10 Sep 2025 14:06:49 +0000 (19:36 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:06 +0000 (19:47 +0100)
The als31300 driver does not advertise IIO_CHAN_INFO_PROCESSED in its
info_mask_* fields, so the corresponding case in read_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/als31300.c

index c083bef5357399f1d0b75fab261a327f3dbca4c3..2a2677428ed59d8fa18629faa54b214f8ac57ec5 100644 (file)
@@ -155,7 +155,6 @@ static int als31300_read_raw(struct iio_dev *indio_dev,
        int ret;
 
        switch (mask) {
-       case IIO_CHAN_INFO_PROCESSED:
        case IIO_CHAN_INFO_RAW:
                ret = als31300_get_measure(data, &t, &x, &y, &z);
                if (ret)