#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/sysfs.h>
Go to the source code of this file.
#define CFG2_DIODE_FAULT_OS 0x20 |
#define CFG2_DIODE_FAULT_TCRIT 0x10 |
#define CFG2_REMOTE_FILTER_DIS 0x00 |
#define CFG2_REMOTE_FILTER_EN 0x06 |
#define CFG2_REMOTE_TT 0x08 |
#define CFG_LOCAL_OS_MASK 0x02 |
#define CFG_LOCAL_TCRIT_MASK 0x04 |
#define CFG_REMOTE_OS_MASK 0x08 |
#define CFG_REMOTE_TCRIT_MASK 0x10 |
#define DEFAULT_REVISION 0xB3 |
#define DEVNAME "lm95245" |
#define LM95245_REG_R_CHIP_ID 0xFF |
#define LM95245_REG_R_LOCAL_TEMPH_S 0x00 |
#define LM95245_REG_R_LOCAL_TEMPL_S 0x30 |
#define LM95245_REG_R_MAN_ID 0xFE |
#define LM95245_REG_R_REMOTE_TEMPH_S 0x01 |
#define LM95245_REG_R_REMOTE_TEMPH_U 0x31 |
#define LM95245_REG_R_REMOTE_TEMPL_S 0x10 |
#define LM95245_REG_R_REMOTE_TEMPL_U 0x32 |
#define LM95245_REG_R_STATUS1 0x02 |
#define LM95245_REG_R_STATUS2 0x33 |
#define LM95245_REG_RW_COMMON_HYSTERESIS 0x21 |
#define LM95245_REG_RW_CONFIG1 0x03 |
#define LM95245_REG_RW_CONFIG2 0xBF |
#define LM95245_REG_RW_CONVERS_RATE 0x04 |
#define LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT 0x20 |
#define LM95245_REG_RW_REMOTE_OFFH 0x11 |
#define LM95245_REG_RW_REMOTE_OFFL 0x12 |
#define LM95245_REG_RW_REMOTE_OS_LIMIT 0x07 |
#define LM95245_REG_RW_REMOTE_TCRIT_LIMIT 0x19 |
#define LM95245_REG_W_ONE_SHOT 0x0F |
#define MANUFACTURER_ID 0x01 |
#define STATUS1_DIODE_FAULT 0x04 |
#define STATUS1_RTCRIT 0x02 |
MODULE_DESCRIPTION |
( |
"LM95245 sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm95245_id |
|
|
) |
| |
module_i2c_driver |
( |
lm95245_driver |
| ) |
|