2 * STMicroelectronics hts221 sensor driver
4 * Copyright 2016 STMicroelectronics Inc.
6 * Lorenzo Bianconi <lorenzo.bianconi@st.com>
8 * Licensed under the GPL-2.
14 #define HTS221_DEV_NAME "hts221"
16 #include <linux/iio/iio.h>
18 enum hts221_sensor_type {
24 struct hts221_sensor {
32 struct regmap *regmap;
34 struct iio_trigger *trig;
37 struct hts221_sensor sensors[HTS221_SENSOR_MAX];
41 /* Ensure natural alignment of timestamp */
48 extern const struct dev_pm_ops hts221_pm_ops;
50 int hts221_probe(struct device *dev, int irq, const char *name,
51 struct regmap *regmap);
52 int hts221_set_enable(struct hts221_hw *hw, bool enable);
53 int hts221_allocate_buffers(struct hts221_hw *hw);
54 int hts221_allocate_trigger(struct hts221_hw *hw);