summaryrefslogtreecommitdiffstats
path: root/drivers/iio/humidity/hts221.h
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo.bianconi83@gmail.com>2017-07-17 19:39:01 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-07-22 22:21:46 +0200
commite7b4b45e1e1f22585cfc986b1c5c99e124def10e (patch)
tree81d5aa17388b09bcfe082647962678864d71dabd /drivers/iio/humidity/hts221.h
parentiio: humidity: hts221: squash hts221_power_on/off in hts221_set_enable (diff)
downloadlinux-e7b4b45e1e1f22585cfc986b1c5c99e124def10e.tar.xz
linux-e7b4b45e1e1f22585cfc986b1c5c99e124def10e.zip
iio: humidity: hts221: support active-low interrupts
Add support for active low interrupts (IRQF_TRIGGER_LOW and IRQF_TRIGGER_FALLING). Configure the device as active high or low according to the requested irq line. Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/humidity/hts221.h')
-rw-r--r--drivers/iio/humidity/hts221.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/humidity/hts221.h b/drivers/iio/humidity/hts221.h
index 69dfa5c63ec2..c3de6e494f8c 100644
--- a/drivers/iio/humidity/hts221.h
+++ b/drivers/iio/humidity/hts221.h
@@ -61,6 +61,7 @@ struct hts221_hw {
extern const struct dev_pm_ops hts221_pm_ops;
int hts221_config_drdy(struct hts221_hw *hw, bool enable);
+int hts221_write_with_mask(struct hts221_hw *hw, u8 addr, u8 mask, u8 val);
int hts221_probe(struct iio_dev *iio_dev);
int hts221_set_enable(struct hts221_hw *hw, bool enable);
int hts221_allocate_buffers(struct hts221_hw *hw);