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: imu: inv_icm42600: enable temp polling when buffer is on

Delete iio_device_claim_direct_mode() when reading temperature.
It enables polling of temperature data while buffer is on and it
doesn't have any impact on the other sensors.

Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jean-Baptiste Maneyrol and committed by
Jonathan Cameron
e23f687c 676cc11b

-3
-3
drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c
··· 59 59 60 60 switch (mask) { 61 61 case IIO_CHAN_INFO_RAW: 62 - if (!iio_device_claim_direct(indio_dev)) 63 - return -EBUSY; 64 62 ret = inv_icm42600_temp_read(st, &temp); 65 - iio_device_release_direct(indio_dev); 66 63 if (ret) 67 64 return ret; 68 65 *val = temp;