linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ms5611: Add triggered buffer support
@ 2016-01-26 16:57 Daniel Baluta
  2016-01-26 16:57 ` [PATCH v2 1/2] iio: pressure: ms5611: Add IIO_CHAN_INFO_SCALE to mask Daniel Baluta
  2016-01-26 16:57 ` [PATCH v2 2/2] iio: pressure: ms5611: Add triggered buffer support Daniel Baluta
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Baluta @ 2016-01-26 16:57 UTC (permalink / raw)
  To: jic23
  Cc: knaack.h, lars, ludovic.tancerel, tduszyns, akinobu.mita,
	daniel.baluta, k.kozlowski, afd, broonie, linux-iio, linux-kernel,
	lucas.demarchi

First patch reverts 7cb46c2a066 ("iio: pressure: ms5611: remove
IIO_CHAN_INFO_SCALE from mask") because we need the scale to correctly
transform "raw" data from buffer into correct measurement units.

Second patch adds the actual buffer support.

Changes since v1:
	* addressed comments from Peter
	* explain why the need for allocating a buffer of 4 s32 elements
	* correctly handle data copy into buffer when not all channels are enabled
	* fixed timestamp channel index (2 instead of 3)
	* added some new lines for readability

Daniel Baluta (2):
  iio: pressure: ms5611: Add IIO_CHAN_INFO_SCALE to mask
  iio: pressure: ms5611: Add triggered buffer support

 drivers/iio/pressure/Kconfig       |  1 +
 drivers/iio/pressure/ms5611.h      |  1 +
 drivers/iio/pressure/ms5611_core.c | 95 ++++++++++++++++++++++++++++++++++++--
 drivers/iio/pressure/ms5611_i2c.c  |  7 +++
 drivers/iio/pressure/ms5611_spi.c  |  8 ++++
 5 files changed, 108 insertions(+), 4 deletions(-)

-- 
2.5.0


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

end of thread, other threads:[~2016-01-30 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-26 16:57 [PATCH v2 0/2] ms5611: Add triggered buffer support Daniel Baluta
2016-01-26 16:57 ` [PATCH v2 1/2] iio: pressure: ms5611: Add IIO_CHAN_INFO_SCALE to mask Daniel Baluta
2016-01-26 16:57 ` [PATCH v2 2/2] iio: pressure: ms5611: Add triggered buffer support Daniel Baluta
2016-01-30 17:09   ` 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).