#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 DEVNAME "lm95241" |
#define LM95231_CHIP_ID 0xA1 |
#define LM95241_CHIP_ID 0xA4 |
#define LM95241_REG_R_CHIP_ID 0xFF |
#define LM95241_REG_R_LOCAL_TEMPH 0x10 |
#define LM95241_REG_R_LOCAL_TEMPL 0x20 |
#define LM95241_REG_R_MAN_ID 0xFE |
#define LM95241_REG_R_REMOTE1_TEMPH 0x11 |
#define LM95241_REG_R_REMOTE1_TEMPL 0x21 |
#define LM95241_REG_R_REMOTE2_TEMPH 0x12 |
#define LM95241_REG_R_REMOTE2_TEMPL 0x22 |
#define LM95241_REG_R_STATUS 0x02 |
#define LM95241_REG_RW_CONFIG 0x03 |
#define LM95241_REG_RW_REM_FILTER 0x06 |
#define LM95241_REG_RW_REMOTE_MODEL 0x30 |
#define LM95241_REG_RW_TRUTHERM 0x07 |
#define LM95241_REG_W_ONE_SHOT 0x0F |
#define NATSEMI_MAN_ID 0x01 |
#define R1DF_MASK (0x01 << (R1DF_SHIFT)) |
#define R1MS_MASK (0x01 << (R1MS_SHIFT)) |
#define R2DF_MASK (0x01 << (R2DF_SHIFT)) |
#define R2MS_MASK (0x01 << (R2MS_SHIFT)) |
MODULE_DESCRIPTION |
( |
"LM95241 sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm95241_id |
|
|
) |
| |
module_i2c_driver |
( |
lm95241_driver |
| ) |
|