linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Baluta <daniel.baluta@intel.com>
To: jic23@kernel.org
Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	daniel.baluta@intel.com
Subject: [PATCH v2 0/3] Introduce support for creating IIO devices via configfs
Date: Mon, 25 Apr 2016 16:15:50 +0300	[thread overview]
Message-ID: <1461590153-22308-1-git-send-email-daniel.baluta@intel.com> (raw)

For testing purposes is nice to have a quick way of creating IIO devices.
This patch series introduces support for creating IIO devices via configs
(patch 1), allowing users to register "device types". For the moment we
support "dummy" device type (patch 2).

Patch 3 introduces configfs entries documentation for easier review.

Changes since v1:
	* dropped the RFC tag
	* fix coding style issues as per Jonathan suggestion
	* fix configfs path in Documentation as per Lars observation (patch 3)
	* allocate memory for indio_dev->name (patch 1)
	* make iio_simple_dummy depend on SW_DEVICE config option in order to avoid
	compilation errors reported by kbuild robot.

Daniel Baluta (3):
  iio: Add support for creating IIO devices via configfs
  iio: dummy: Convert IIO dummy to configfs
  Documentation: iio: Add IIO software devices docs

 Documentation/ABI/testing/configfs-iio |  13 +++
 drivers/iio/Kconfig                    |   8 ++
 drivers/iio/Makefile                   |   1 +
 drivers/iio/dummy/Kconfig              |   1 +
 drivers/iio/dummy/iio_simple_dummy.c   | 102 +++++++-----------
 drivers/iio/industrialio-sw-device.c   | 182 +++++++++++++++++++++++++++++++++
 include/linux/iio/sw_device.h          |  70 +++++++++++++
 7 files changed, 312 insertions(+), 65 deletions(-)
 create mode 100644 drivers/iio/industrialio-sw-device.c
 create mode 100644 include/linux/iio/sw_device.h

-- 
2.5.0

             reply	other threads:[~2016-04-25 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-25 13:15 Daniel Baluta [this message]
2016-04-25 13:15 ` [PATCH v2 1/3] iio: Add support for creating IIO devices via configfs Daniel Baluta
2016-04-25 13:15 ` [PATCH v2 2/3] iio: dummy: Convert IIO dummy to configfs Daniel Baluta
2016-04-25 13:15 ` [PATCH v2 3/3] Documentation: iio: Add IIO software devices docs Daniel Baluta
2016-05-04 10:45 ` [PATCH v2 0/3] Introduce support for creating IIO devices via configfs 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=1461590153-22308-1-git-send-email-daniel.baluta@intel.com \
    --to=daniel.baluta@intel.com \
    --cc=jic23@kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    /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).