iio:pressure:ms5611: oversampling rate support
authorGregor Boirie <gregor.boirie@parrot.com>
Tue, 1 Mar 2016 10:31:38 +0000 (11:31 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Mar 2016 14:45:14 +0000 (14:45 +0000)
commit033691a9a12f684c68f443f3676806dd64011295
treed35d94f3b5c6d90efd275b1d9d0248562c576347
parent7a948c5e05febd23ee8e61db95c3dc96737fe17f
iio:pressure:ms5611: oversampling rate support

Add support for setting and retrieving OverSampling Rate independently for
each of the temperature and pressure channels. This allows userspace to
fine tune hardware sampling process according to the following tradeoffs :
* the higher the OSR, the finer the resolution ;
* the higher the OSR, the lower the noise ;
BUT:
* the higher the OSR, the larger the drift ;
* the higher the OSR, the longer the response time, i.e. less samples per
  unit of time.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/ms5611.h
drivers/iio/pressure/ms5611_core.c
drivers/iio/pressure/ms5611_i2c.c
drivers/iio/pressure/ms5611_spi.c