Skip to content

Commit 09579fb

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

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/iio/magnetometer/als31300.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ static int als31300_read_raw(struct iio_dev *indio_dev,
155155
int ret;
156156

157157
switch (mask) {
158-
case IIO_CHAN_INFO_PROCESSED:
159158
case IIO_CHAN_INFO_RAW:
160159
ret = als31300_get_measure(data, &t, &x, &y, &z);
161160
if (ret)

0 commit comments

Comments
 (0)