linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lars-Peter Clausen <lars@metafoo.de>
To: Jonathan Cameron <jic23@cam.ac.uk>
Cc: linux-iio@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH 0/9] iio: Add helper function for initializing triggered buffers
Date: Wed,  6 Jun 2012 13:55:47 +0200	[thread overview]
Message-ID: <1338983756-31243-1-git-send-email-lars@metafoo.de> (raw)

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


             reply	other threads:[~2012-06-06 12:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-06 11:55 Lars-Peter Clausen [this message]
2012-06-06 11:55 ` [PATCH 1/9] staging:iio: Add helper function for initializing triggered buffers 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1338983756-31243-1-git-send-email-lars@metafoo.de \
    --to=lars@metafoo.de \
    --cc=jic23@cam.ac.uk \
    --cc=linux-iio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).