#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/slab.h>
Go to the source code of this file.
#define ADT7411_BIT_ATTR |
( |
|
__name, |
|
|
|
__reg, |
|
|
|
__bit |
|
) |
| |
#define ADT7411_CFG1_START_MONITOR (1 << 0) |
#define ADT7411_CFG2_DISABLE_AVG (1 << 5) |
#define ADT7411_CFG3_ADC_CLK_225 (1 << 0) |
#define ADT7411_CFG3_REF_VDD (1 << 4) |
#define ADT7411_DEVICE_ID 0x2 |
#define ADT7411_MANUFACTURER_ID 0x41 |
#define ADT7411_REG_CFG1 0x18 |
#define ADT7411_REG_CFG2 0x19 |
#define ADT7411_REG_CFG3 0x1a |
#define ADT7411_REG_DEVICE_ID 0x4d |
#define ADT7411_REG_EXT_TEMP_AIN14_LSB 0x04 |
#define ADT7411_REG_EXT_TEMP_AIN1_MSB 0x08 |
#define ADT7411_REG_INT_TEMP_MSB 0x07 |
#define ADT7411_REG_INT_TEMP_VDD_LSB 0x03 |
#define ADT7411_REG_MANUFACTURER_ID 0x4e |
#define ADT7411_REG_VDD_MSB 0x06 |
MODULE_DESCRIPTION |
( |
"ADT7411 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
adt7411_id |
|
|
) |
| |
module_i2c_driver |
( |
adt7411_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|