iio: pressure: bmp280: add support for BMP085 EOC interrupt
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Jun 2016 01:48:52 +0000 (03:48 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 3 Jul 2016 10:32:14 +0000 (11:32 +0100)
commitaae9539496510a728bfe7d555b3ecfd5a146359a
tree6674a333d6ae493920ddf4e6f792d18305d105f9
parentb26b4e91700ff45d033eeaac91597d6d479378a4
iio: pressure: bmp280: add support for BMP085 EOC interrupt

The first version of this sensor, BMP085, supports sending an
End-of-Conversion (EOC) interrupt. Add code to support this using
a completion, in a similar vein as drivers/misc/bmp085.c does.

Make sure to check that we are given a rising edge, because the
EOC line goes from low-to-high when the conversion is ready.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/bmp280-core.c
drivers/iio/pressure/bmp280-i2c.c
drivers/iio/pressure/bmp280-spi.c
drivers/iio/pressure/bmp280.h
This page took 0.025266 seconds and 5 git commands to generate.