1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * STMicroelectronics hts221 sensor driver
5 * Copyright 2016 STMicroelectronics Inc.
7 * Lorenzo Bianconi <lorenzo.bianconi@st.com>
13 #define HTS221_DEV_NAME "hts221"
15 #include <linux/iio/iio.h>
17 enum hts221_sensor_type
{
23 struct hts221_sensor
{
31 struct regmap
*regmap
;
33 struct iio_trigger
*trig
;
36 struct hts221_sensor sensors
[HTS221_SENSOR_MAX
];
40 /* Ensure natural alignment of timestamp */
47 extern const struct dev_pm_ops hts221_pm_ops
;
49 int hts221_probe(struct device
*dev
, int irq
, const char *name
,
50 struct regmap
*regmap
);
51 int hts221_set_enable(struct hts221_hw
*hw
, bool enable
);
52 int hts221_allocate_buffers(struct iio_dev
*iio_dev
);
53 int hts221_allocate_trigger(struct iio_dev
*iio_dev
);