#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/delay.h>
Go to the source code of this file.
#define ADT7410_CT_POLARITY (1 << 2) |
#define ADT7410_DEV_PM_OPS NULL |
#define ADT7410_EVENT_MODE (1 << 4) |
#define ADT7410_FAULT_QUEUE_MASK (1 << 0 | 1 << 1) |
#define ADT7410_FULL (0 << 5 | 0 << 6) |
#define ADT7410_INT_POLARITY (1 << 3) |
#define ADT7410_MODE_MASK (1 << 5 | 1 << 6) |
#define ADT7410_PD (1 << 5 | 1 << 6) |
#define ADT7410_RESOLUTION (1 << 7) |
#define ADT7410_STAT_NOT_RDY (1 << 7) |
#define ADT7410_STAT_T_CRIT (1 << 6) |
#define ADT7410_STAT_T_HIGH (1 << 5) |
#define ADT7410_STAT_T_LOW (1 << 4) |
#define ADT7410_T13_VALUE_MASK 0xFFF8 |
#define ADT7410_T_ALARM_HIGH 4 |
#define ADT7410_T_ALARM_LOW 6 |
#define ADT7410_T_HYST 0xA |
#define ADT7410_T_HYST_MASK 0xF |
#define ADT7410_TEMP_MAX 150000 |
#define ADT7410_TEMP_MIN (-55000) |
#define ADT7410_TEMPERATURE 0 |
MODULE_AUTHOR |
( |
"Hartmut Knaack" |
| ) |
|
MODULE_DESCRIPTION |
( |
"ADT7410 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
adt7410_ids |
|
|
) |
| |
module_i2c_driver |
( |
adt7410_driver |
| ) |
|