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: 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>

authored by

Dixit Parmar and committed by
Jonathan Cameron
09579fb7 7b69cb9a

-1
-1
drivers/iio/magnetometer/als31300.c
··· 155 155 int ret; 156 156 157 157 switch (mask) { 158 - case IIO_CHAN_INFO_PROCESSED: 159 158 case IIO_CHAN_INFO_RAW: 160 159 ret = als31300_get_measure(data, &t, &x, &y, &z); 161 160 if (ret)