Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * STMicroelectronics uvis25 sensor driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright 2017 STMicroelectronics Inc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef ST_UVIS25_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define ST_UVIS25_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define ST_UVIS25_DEV_NAME		"uvis25"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #include <linux/iio/iio.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * struct st_uvis25_hw - ST UVIS25 sensor instance
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  * @regmap: Register map of the device.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)  * @trig: The trigger in use by the driver.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)  * @enabled: Status of the sensor (false->off, true->on).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)  * @irq: Device interrupt line (I2C or SPI).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct st_uvis25_hw {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	struct regmap *regmap;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	struct iio_trigger *trig;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	bool enabled;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	int irq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	/* Ensure timestamp is naturally aligned */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	struct {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 		u8 chan;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		s64 ts __aligned(8);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	} scan;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) extern const struct dev_pm_ops st_uvis25_pm_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) int st_uvis25_probe(struct device *dev, int irq, struct regmap *regmap);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #endif /* ST_UVIS25_H */