treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / iio / light / st_uvis25.h
blob78bc56aad1299f3feb659304a1341f3ea4839413
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * STMicroelectronics uvis25 sensor driver
5 * Copyright 2017 STMicroelectronics Inc.
7 * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
8 */
10 #ifndef ST_UVIS25_H
11 #define ST_UVIS25_H
13 #define ST_UVIS25_DEV_NAME "uvis25"
15 #include <linux/iio/iio.h>
17 /**
18 * struct st_uvis25_hw - ST UVIS25 sensor instance
19 * @regmap: Register map of the device.
20 * @trig: The trigger in use by the driver.
21 * @enabled: Status of the sensor (false->off, true->on).
22 * @irq: Device interrupt line (I2C or SPI).
24 struct st_uvis25_hw {
25 struct regmap *regmap;
27 struct iio_trigger *trig;
28 bool enabled;
29 int irq;
32 extern const struct dev_pm_ops st_uvis25_pm_ops;
34 int st_uvis25_probe(struct device *dev, int irq, struct regmap *regmap);
36 #endif /* ST_UVIS25_H */