dt-bindings: mtd: ingenic: Use standard ecc-engine property
[linux/fpc-iii.git] / drivers / iio / light / st_uvis25.h
blob5e970ab480cda895abadfd00bdc0f5dac49930b0
1 /*
2 * STMicroelectronics uvis25 sensor driver
4 * Copyright 2017 STMicroelectronics Inc.
6 * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
8 * Licensed under the GPL-2.
9 */
11 #ifndef ST_UVIS25_H
12 #define ST_UVIS25_H
14 #define ST_UVIS25_DEV_NAME "uvis25"
16 #include <linux/iio/iio.h>
18 /**
19 * struct st_uvis25_hw - ST UVIS25 sensor instance
20 * @regmap: Register map of the device.
21 * @trig: The trigger in use by the driver.
22 * @enabled: Status of the sensor (false->off, true->on).
23 * @irq: Device interrupt line (I2C or SPI).
25 struct st_uvis25_hw {
26 struct regmap *regmap;
28 struct iio_trigger *trig;
29 bool enabled;
30 int irq;
33 extern const struct dev_pm_ops st_uvis25_pm_ops;
35 int st_uvis25_probe(struct device *dev, int irq, struct regmap *regmap);
37 #endif /* ST_UVIS25_H */