aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorDixit Parmar <dixitparmar19@gmail.com>2025-09-10 19:36:49 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2025-09-10 19:47:06 +0100
commit09579fb72e5412a4e98aee42c8a3ab3d437f8a32 (patch)
treea17456e75d71d7b07630e9f2ad6a2e6d7f03497e /drivers/iio
parentDocumentation: iio: Remove location attribute (diff)
downloadlinux-09579fb72e5412a4e98aee42c8a3ab3d437f8a32.tar.gz
linux-09579fb72e5412a4e98aee42c8a3ab3d437f8a32.zip
iio: magnetometer: als31300: remove unused IIO_CHAN_INFO_PROCESSED handling
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/magnetometer/als31300.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/magnetometer/als31300.c b/drivers/iio/magnetometer/als31300.c
index c083bef53573..2a2677428ed5 100644
--- a/drivers/iio/magnetometer/als31300.c
+++ b/drivers/iio/magnetometer/als31300.c
@@ -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)