summaryrefslogtreecommitdiffstats
path: root/drivers/iio/pressure/bmp280-spi.c
diff options
context:
space:
mode:
authorLinus Walleij2016-06-30 03:48:52 +0200
committerJonathan Cameron2016-07-03 12:32:14 +0200
commitaae9539496510a728bfe7d555b3ecfd5a146359a (patch)
tree6674a333d6ae493920ddf4e6f792d18305d105f9 /drivers/iio/pressure/bmp280-spi.c
parentiio: pressure: bmp280: add SPI interface driver (diff)
downloadkernel-qcow2-linux-aae9539496510a728bfe7d555b3ecfd5a146359a.tar.gz
kernel-qcow2-linux-aae9539496510a728bfe7d555b3ecfd5a146359a.tar.xz
kernel-qcow2-linux-aae9539496510a728bfe7d555b3ecfd5a146359a.zip
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>
Diffstat (limited to 'drivers/iio/pressure/bmp280-spi.c')
-rw-r--r--drivers/iio/pressure/bmp280-spi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/pressure/bmp280-spi.c b/drivers/iio/pressure/bmp280-spi.c
index 216e64b682bf..cd365ba74b68 100644
--- a/drivers/iio/pressure/bmp280-spi.c
+++ b/drivers/iio/pressure/bmp280-spi.c
@@ -81,7 +81,8 @@ static int bmp280_spi_probe(struct spi_device *spi)
return bmp280_common_probe(&spi->dev,
regmap,
id->driver_data,
- id->name);
+ id->name,
+ spi->irq);
}
static int bmp280_spi_remove(struct spi_device *spi)