iio: humidity: am2315: set up buffer timestamps for non-zero values
authorAlison Schofield <amsfield22@gmail.com>
Mon, 11 Jul 2016 15:26:13 +0000 (08:26 -0700)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 14:39:23 +0000 (15:39 +0100)
commit3c68858df7c2f0c4c343bb4702733fe827491f9e
tree23328a2dcbe4b1bbc97712e05e0bd20ffa60be47
parentb234f683dde97aebb7009c6aecab651d32ad70b4
iio: humidity: am2315: set up buffer timestamps for non-zero values

Use the iio_pollfunc_store_time parameter during triggered buffer
set-up to get valid timestamps.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-By: Tiberiu Breana <tiberiu.a.breana@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/am2315.c