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