Re: [RFC PATCH 3/4] iio: accel: fxls8962af: add hw buffered sampling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 28/04/2021 10.22, Sean Nyekjaer wrote:
|@@ -433,7 +450,10 @@ static int fxls8962af_read_raw(struct iio_dev *indio_dev, ret = fxls8962af_get_temp(data, val); break; case IIO_ACCEL: - ret = fxls8962af_get_axis(data, chan, val); + if (iio_buffer_enabled(indio_dev))|
|Seeing the iio_device_claim_direct_mode() is doing exactly the same check :)|
|+ ret = -EBUSY; + else + ret = fxls8962af_get_axis(data, chan, val); break; default: ret = -EINVAL;|




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux