Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dixit Parmar and committed by
Jonathan Cameron
ee8fc402 09579fb7

-1
-1
drivers/iio/magnetometer/tmag5273.c
··· 287 287 int ret; 288 288 289 289 switch (mask) { 290 - case IIO_CHAN_INFO_PROCESSED: 291 290 case IIO_CHAN_INFO_RAW: 292 291 ret = pm_runtime_resume_and_get(data->dev); 293 292 if (ret < 0)