All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: chemical: Add support for sgp40 gas sensor
@ 2021-08-04 15:45 Andreas Klinger
  0 siblings, 0 replies; only message in thread
From: Andreas Klinger @ 2021-08-04 15:45 UTC (permalink / raw)
  To: devicetree, linux-iio, Rob Herring, Jonathan Cameron
  Cc: Jonathan Cameron, Jiri Kosina, Guenter Roeck, Chris Packham,
	Slawomir Stepien, Krzysztof Kozlowski, Alexandre Belloni,
	Vadim Pasternak, Alexandru Ardelean, linux-kernel,
	Lars-Peter Clausen, Tomasz Duszynski

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-04 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04 15:45 [PATCH v2 0/2] iio: chemical: Add support for sgp40 gas sensor Andreas Klinger

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.