linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/3] iio: vcnl3020: add periodic mode, threshold options
@ 2021-07-22 15:44 Ivan Mikhaylov
  2021-07-22 15:44 ` [PATCH v5 1/3] iio: proximity: vcnl3020: add DMA safe buffer Ivan Mikhaylov
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ivan Mikhaylov @ 2021-07-22 15:44 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Peter Meerwald-Stadler
  Cc: Ivan Mikhaylov, linux-kernel, linux-iio

Add periodic mode enablement, high/low threshold options.

Changes from v1:
 1. Remove changes for hwmon driver and changes affecting
vcnl3020 data structure.
 2. Add enable/disable periodic mode functions.

Changes from v2:
 1. Minor fixes from Jonathan's comments.

Changes from v3:
 1. add DMA safe buffer in vcnl3020_data and use it on bulk_read/write
    calls
 2. put vcnl3020_is_in_periodic_mode in vcnl3020_measure_proximity and
    vcnl3020_write_proxy_samp_freq
 3. add mutex instead of iio_claim in vcnl3020_write_proxy_samp_freq
 4. out_mutex -> err_unlock

Changes from v4:
 1. split into 3 patches - DMA safe buffer, periodic mode, change
    iio_claim/release on mutex.
 2. add dev_err for regmap_read/write

Ivan Mikhaylov (3):
  iio: proximity: vcnl3020: add DMA safe buffer
  iio: proximity: vcnl3020: add periodic mode
  iio: proximity: vcnl3020: remove iio_claim/release_direct

 drivers/iio/proximity/vcnl3020.c | 354 +++++++++++++++++++++++++++++--
 1 file changed, 338 insertions(+), 16 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-07-24 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-22 15:44 [PATCH v5 0/3] iio: vcnl3020: add periodic mode, threshold options Ivan Mikhaylov
2021-07-22 15:44 ` [PATCH v5 1/3] iio: proximity: vcnl3020: add DMA safe buffer Ivan Mikhaylov
2021-07-22 15:44 ` [PATCH v5 2/3] iio: proximity: vcnl3020: add periodic mode Ivan Mikhaylov
2021-07-24 15:07   ` Jonathan Cameron
2021-07-22 15:44 ` [PATCH v5 3/3] iio: proximity: vcnl3020: remove iio_claim/release_direct Ivan Mikhaylov
2021-07-24 15:09 ` [PATCH v5 0/3] iio: vcnl3020: add periodic mode, threshold options Jonathan Cameron

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).