1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 251c2a487SLars-Peter Clausen #ifndef __HWMON_ADT7X10_H__ 351c2a487SLars-Peter Clausen #define __HWMON_ADT7X10_H__ 451c2a487SLars-Peter Clausen 551c2a487SLars-Peter Clausen #include <linux/types.h> 651c2a487SLars-Peter Clausen #include <linux/pm.h> 751c2a487SLars-Peter Clausen 851c2a487SLars-Peter Clausen /* ADT7410 registers definition */ 951c2a487SLars-Peter Clausen #define ADT7X10_TEMPERATURE 0 1051c2a487SLars-Peter Clausen #define ADT7X10_STATUS 2 1151c2a487SLars-Peter Clausen #define ADT7X10_CONFIG 3 1251c2a487SLars-Peter Clausen #define ADT7X10_T_ALARM_HIGH 4 1351c2a487SLars-Peter Clausen #define ADT7X10_T_ALARM_LOW 6 1451c2a487SLars-Peter Clausen #define ADT7X10_T_CRIT 8 1551c2a487SLars-Peter Clausen #define ADT7X10_T_HYST 0xA 1651c2a487SLars-Peter Clausen #define ADT7X10_ID 0xB 1751c2a487SLars-Peter Clausen 1851c2a487SLars-Peter Clausen struct device; 1951c2a487SLars-Peter Clausen 204b5e536bSLars-Peter Clausen int adt7x10_probe(struct device *dev, const char *name, int irq, 21*f5320701SGuenter Roeck struct regmap *regmap); 22*f5320701SGuenter Roeck 2351c2a487SLars-Peter Clausen extern const struct dev_pm_ops adt7x10_dev_pm_ops; 2451c2a487SLars-Peter Clausen 2551c2a487SLars-Peter Clausen #endif 26