> >> Add IIO driver for the Renesas RCar GyroADC block. This block is a > >> simple 4/8-channel ADC which samples 12/15/24 bits of data every > >> + if (iio_buffer_enabled(indio_dev)) > >> + return -EBUSY; > > > > use iio_device_claim_direct_mode() > > Why ? Do I really need the mutex locking here ? no, not needed, since you do not support buffered mode yet; but neither do you need iio_buffer_enabled() p. -- Peter Meerwald-Stadler +43-664-2444418 (mobile) -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html