linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] iio: vcnl: Add interrupts support for VCNL4010/20.
@ 2020-04-06 14:53 Mathieu Othacehe
  2020-04-06 14:53 ` [PATCH v2 1/4] iio: vcnl4000: Factorize data reading and writing Mathieu Othacehe
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2020-04-06 14:53 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw; +Cc: linux-iio, linux-kernel, Mathieu Othacehe

Hello,

Thanks for reviewing Jonathan! I did split the original patch into four
parts. I should have done it in the first place, sorry about that.

I did drop the ALS data from the buffer, as they are not really useful
anyway. I also used iio_device_claim_direct_mode as requested. But making sure
buffer and event capture are not done simultaneously is quite tricky as you
mentionned.

Thanks,

Mathieu

Changes from v1:
* Split into four different patches.
* Use iio_device_claim_direct_mode to protect
raw access from buffer capture.
* Requesting a sampling frequency above the limit is no longer possible.
* Inline read_isr and write_isr functions.
* Remove IIO_LIGHT data from buffer capture.
* Make sure postenable and predisable functions respect the common form.
* Do not set the trigger by default.
* Remove the devm_iio_triggered_buffer_setup top half.

Mathieu Othacehe (4):
  iio: vcnl4000: Factorize data reading and writing.
  iio: vcnl4000: Add event support for VCNL4010/20.
  iio: vcnl4000: Add sampling frequency support for VCNL4010/20.
  iio: vcnl4000: Add buffer support for VCNL4010/20.

 drivers/iio/light/Kconfig    |   2 +
 drivers/iio/light/vcnl4000.c | 856 +++++++++++++++++++++++++++++++++--
 2 files changed, 813 insertions(+), 45 deletions(-)

-- 
2.26.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-14 14:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 14:53 [PATCH v2 0/4] iio: vcnl: Add interrupts support for VCNL4010/20 Mathieu Othacehe
2020-04-06 14:53 ` [PATCH v2 1/4] iio: vcnl4000: Factorize data reading and writing Mathieu Othacehe
2020-04-06 14:53 ` [PATCH v2 2/4] iio: vcnl4000: Add event support for VCNL4010/20 Mathieu Othacehe
2020-04-06 14:53 ` [PATCH v2 3/4] iio: vcnl4000: Add sampling frequency " Mathieu Othacehe
2020-04-06 14:53 ` [PATCH v2 4/4] iio: vcnl4000: Add buffer " Mathieu Othacehe
2020-04-12 13:46   ` Jonathan Cameron
2020-04-14 14:56     ` Mathieu Othacehe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).