diff options
author | Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> | 2017-05-14 17:45:44 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-05-14 17:52:33 +0200 |
commit | b7079eeac5da0d50a89a73969ff390e8cdecec44 (patch) | |
tree | 77cb44bdd5e370bf8345d21e130a16daa5861958 /drivers/iio/humidity/hts221.h | |
parent | iio: adc: add driver for the ti-adc084s021 chip (diff) | |
download | linux-b7079eeac5da0d50a89a73969ff390e8cdecec44.tar.xz linux-b7079eeac5da0d50a89a73969ff390e8cdecec44.zip |
iio: humidity: hts221: add power management support
Add system sleep power management support to hts221 driver
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/humidity/hts221.h')
-rw-r--r-- | drivers/iio/humidity/hts221.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/humidity/hts221.h b/drivers/iio/humidity/hts221.h index c7154665512e..94510266e0a5 100644 --- a/drivers/iio/humidity/hts221.h +++ b/drivers/iio/humidity/hts221.h @@ -57,12 +57,15 @@ struct hts221_hw { struct hts221_sensor sensors[HTS221_SENSOR_MAX]; + bool enabled; u8 odr; const struct hts221_transfer_function *tf; struct hts221_transfer_buffer tb; }; +extern const struct dev_pm_ops hts221_pm_ops; + int hts221_config_drdy(struct hts221_hw *hw, bool enable); int hts221_probe(struct iio_dev *iio_dev); int hts221_power_on(struct hts221_hw *hw); |