Skip to content

Commit ee8fc40

Browse files
dixitparmar19jic23
authored andcommitted
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>
1 parent 09579fb commit ee8fc40

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/iio/magnetometer/tmag5273.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ static int tmag5273_read_raw(struct iio_dev *indio_dev,
287287
int ret;
288288

289289
switch (mask) {
290-
case IIO_CHAN_INFO_PROCESSED:
291290
case IIO_CHAN_INFO_RAW:
292291
ret = pm_runtime_resume_and_get(data->dev);
293292
if (ret < 0)

0 commit comments

Comments
 (0)