diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-06-30 04:48:52 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-03 13:32:14 +0300 |
commit | aae9539496510a728bfe7d555b3ecfd5a146359a (patch) | |
tree | 6674a333d6ae493920ddf4e6f792d18305d105f9 /drivers/iio/pressure/bmp280-i2c.c | |
parent | b26b4e91700ff45d033eeaac91597d6d479378a4 (diff) | |
download | linux-aae9539496510a728bfe7d555b3ecfd5a146359a.tar.xz |
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-i2c.c')
-rw-r--r-- | drivers/iio/pressure/bmp280-i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/pressure/bmp280-i2c.c b/drivers/iio/pressure/bmp280-i2c.c index 7c70ee172bba..8cf8a900bdaa 100644 --- a/drivers/iio/pressure/bmp280-i2c.c +++ b/drivers/iio/pressure/bmp280-i2c.c @@ -33,7 +33,8 @@ static int bmp280_i2c_probe(struct i2c_client *client, return bmp280_common_probe(&client->dev, regmap, id->driver_data, - id->name); + id->name, + client->irq); } static int bmp280_i2c_remove(struct i2c_client *client) |