From: Andreas Klinger <ak@it-klinger.de>
To: devicetree@vger.kernel.org, linux-iio@vger.kernel.org,
Rob Herring <robh+dt@kernel.org>,
Jonathan Cameron <jic23@kernel.org>
Cc: Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Jiri Kosina <trivial@kernel.org>,
Guenter Roeck <linux@roeck-us.net>,
Chris Packham <chris.packham@alliedtelesis.co.nz>,
Slawomir Stepien <sst@poczta.fm>,
Krzysztof Kozlowski <krzk@kernel.org>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Vadim Pasternak <vadimp@nvidia.com>,
Alexandru Ardelean <alexandru.ardelean@analog.com>,
linux-kernel@vger.kernel.org,
Lars-Peter Clausen <lars@metafoo.de>,
Tomasz Duszynski <tomasz.duszynski@octakon.com>
Subject: [PATCH v2 0/2] iio: chemical: Add support for sgp40 gas sensor
Date: Wed, 4 Aug 2021 17:45:28 +0200 [thread overview]
Message-ID: <20210804154526.GA3207@arbad> (raw)
This patch set adds support for sensirion sgp40 gas sensor.
Many thanks for the in-depth reviews, especially of Jonathan who triggered
some important improvements for v2:
- provide more precision for voc value; this in turn triggered the folling
point:
- rework of e^x calculation with an optimization on the interesting range
between e^(-6) and e^6
- restructure use of endian types
- use __packed structures for sent telegrams
- optimize usage of mutex
- optimize switch-cases
- replace attributes by read_raw() and write_raw() values
- add documentation in Documentation/ABI/testing/sysfs-bus-iio-sgp40 as
well as in the source code
Andreas Klinger (2):
dt-bindings: iio: chemical: Add trivial DT binding for sgp40
iio: chemical: Add driver support for sgp40
.../ABI/testing/sysfs-bus-iio-chemical-sgp40 | 31 ++
.../devicetree/bindings/trivial-devices.yaml | 2 +
MAINTAINERS | 6 +
drivers/iio/chemical/Kconfig | 11 +
drivers/iio/chemical/Makefile | 1 +
drivers/iio/chemical/sgp40.c | 372 ++++++++++++++++++
6 files changed, 423 insertions(+)
create mode 100644 Documentation/ABI/testing/sysfs-bus-iio-chemical-sgp40
create mode 100644 drivers/iio/chemical/sgp40.c
--
2.20.1
reply other threads:[~2021-08-04 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210804154526.GA3207@arbad \
--to=ak@it-klinger.de \
--cc=Jonathan.Cameron@huawei.com \
--cc=alexandre.belloni@bootlin.com \
--cc=alexandru.ardelean@analog.com \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=krzk@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=robh+dt@kernel.org \
--cc=sst@poczta.fm \
--cc=tomasz.duszynski@octakon.com \
--cc=trivial@kernel.org \
--cc=vadimp@nvidia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.