[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250910-iio_chan_617_rc5-v1-2-924091d374be@gmail.com>
Date: Wed, 10 Sep 2025 19:36:50 +0530
From: Dixit Parmar <dixitparmar19@...il.com>
To: Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>,
Gerald Loacker <gerald.loacker@...fvision.net>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Dixit Parmar <dixitparmar19@...il.com>
Subject: [PATCH 2/2] 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@...il.com>
---
drivers/iio/magnetometer/tmag5273.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/iio/magnetometer/tmag5273.c b/drivers/iio/magnetometer/tmag5273.c
index 2ca5c26f0091..ed023eae5e42 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)
--
2.43.0
Powered by blists - more mailing lists