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 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __HWMON_ADT7X10_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __HWMON_ADT7X10_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #include <linux/pm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) /* ADT7410 registers definition */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define ADT7X10_TEMPERATURE		0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #define ADT7X10_STATUS			2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define ADT7X10_CONFIG			3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define ADT7X10_T_ALARM_HIGH		4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define ADT7X10_T_ALARM_LOW		6
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define ADT7X10_T_CRIT			8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define ADT7X10_T_HYST			0xA
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define ADT7X10_ID			0xB
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) struct device;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) struct adt7x10_ops {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	int (*read_byte)(struct device *, u8 reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	int (*write_byte)(struct device *, u8 reg, u8 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	int (*read_word)(struct device *, u8 reg);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	int (*write_word)(struct device *, u8 reg, u16 data);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) int adt7x10_probe(struct device *dev, const char *name, int irq,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	const struct adt7x10_ops *ops);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) int adt7x10_remove(struct device *dev, int irq);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #ifdef CONFIG_PM_SLEEP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) extern const struct dev_pm_ops adt7x10_dev_pm_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define ADT7X10_DEV_PM_OPS (&adt7x10_dev_pm_ops)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define ADT7X10_DEV_PM_OPS NULL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #endif