linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] iio: Add helper function for initializing triggered buffers
@ 2012-06-06 11:55 Lars-Peter Clausen
  2012-06-06 11:55 ` [PATCH 1/9] staging:iio: " Lars-Peter Clausen
                   ` (8 more replies)
  0 siblings, 9 replies; 23+ messages in thread
From: Lars-Peter Clausen @ 2012-06-06 11:55 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio, Lars-Peter Clausen

This series revives some older patches from a few months back which somehow fell
off the table. It introduces two helper functions for managing triggered
buffers, since almost all drivers which use triggered buffers have the same
code for setting up and registering the pollfunc and trigger. New in this series
is that the helper functions now only support kfifo buffers. So only these
drivers which do use a kfifo buffer have been converted. There are a few more
drivers which could make use of these helper functions if we switch them from
the swring buffer to the kfifo buffer. Also new in this series is that the
helper functions are now in their own module, since it has dependencies on
IIO_BUFFER, IIO_KFIFO_BUF and IIO_TRIGGER_BUF but neither of these have
 on each other. So putting the helper functions in one of these
modules would add a dependency of the other modules to that module.

- Lars

Lars-Peter Clausen (9):
  iio: Add helper function for initializing triggered buffers
  iio:adc:at91: Use new triggered buffer setup helper
  staging:iio:adc:ad7192: Use new triggered buffer setup helper function
  staging:iio:adc:ad7298: Use new triggered buffer setup helper function
  staging:iio:adc:ad7476: Use new triggered buffer setup helper function
  staging:iio:adc:ad7606: Use new triggered buffer setup helper function
  staging:iio:adc:ad7793: Use new triggered buffer setup helper function
  staging:iio:adc:ad7887: Use new triggered buffer setup helper function
  staging:iio:adc:ad799x: Use new triggered buffer setup helper function

 drivers/iio/Kconfig                         |    7 ++
 drivers/iio/Makefile                        |    1 +
 drivers/iio/adc/Kconfig                     |    2 +-
 drivers/iio/adc/at91_adc.c                  |   49 +-----------
 drivers/iio/industrialio-triggered-buffer.c |  109 +++++++++++++++++++++++++++
 drivers/staging/iio/adc/Kconfig             |    7 ++
 drivers/staging/iio/adc/ad7192.c            |   47 ++----------
 drivers/staging/iio/adc/ad7298.h            |    5 ++
 drivers/staging/iio/adc/ad7298_core.c       |   11 +--
 drivers/staging/iio/adc/ad7298_ring.c       |   62 +++------------
 drivers/staging/iio/adc/ad7476_core.c       |    9 ---
 drivers/staging/iio/adc/ad7476_ring.c       |   44 +----------
 drivers/staging/iio/adc/ad7606_core.c       |    9 ---
 drivers/staging/iio/adc/ad7606_ring.c       |   44 +----------
 drivers/staging/iio/adc/ad7793.c            |   47 ++----------
 drivers/staging/iio/adc/ad7887_core.c       |    9 ---
 drivers/staging/iio/adc/ad7887_ring.c       |   33 +-------
 drivers/staging/iio/adc/ad799x.h            |    2 -
 drivers/staging/iio/adc/ad799x_core.c       |   25 +++---
 drivers/staging/iio/adc/ad799x_ring.c       |   63 +---------------
 include/linux/iio/buffer.h                  |    7 ++
 21 files changed, 189 insertions(+), 403 deletions(-)
 create mode 100644 drivers/iio/industrialio-triggered-buffer.c

-- 
1.7.10


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

end of thread, other threads:[~2012-06-08  7:59 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06 11:55 [PATCH 0/9] iio: Add helper function for initializing triggered buffers Lars-Peter Clausen
2012-06-06 11:55 ` [PATCH 1/9] staging:iio: " Lars-Peter Clausen
2012-06-07 19:09   ` Jonathan Cameron
2012-06-08  7:47     ` Lars-Peter Clausen
2012-06-06 11:55 ` [PATCH 2/9] iio:adc:at91: Use new triggered buffer setup helper Lars-Peter Clausen
2012-06-07 20:02   ` Jonathan Cameron
2012-06-08  7:57     ` Lars-Peter Clausen
2012-06-08  7:59       ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 3/9] staging:iio:adc:ad7192: Use new triggered buffer setup helper function Lars-Peter Clausen
2012-06-07 20:06   ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 4/9] staging:iio:adc:ad7298: " Lars-Peter Clausen
2012-06-07 20:11   ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 5/9] staging:iio:adc:ad7476: " Lars-Peter Clausen
2012-06-07 20:12   ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 6/9] staging:iio:adc:ad7606: " Lars-Peter Clausen
2012-06-07 20:13   ` Jonathan Cameron
2012-06-07 20:14     ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 7/9] staging:iio:adc:ad7793: " Lars-Peter Clausen
2012-06-07 20:14   ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 8/9] staging:iio:adc:ad7887: " Lars-Peter Clausen
2012-06-07 20:15   ` Jonathan Cameron
2012-06-06 11:55 ` [PATCH 9/9] staging:iio:adc:ad799x: " Lars-Peter Clausen
2012-06-07 20:18   ` 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).