#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/jiffies.h>
Go to the source code of this file.
#define LM92_REG_CONFIG 0x01 /* 8-bit, RW */ |
#define LM92_REG_MAN_ID 0x07 /* 16-bit, RO, LM92 only */ |
#define LM92_REG_TEMP 0x00 /* 16-bit, RO */ |
#define LM92_REG_TEMP_CRIT 0x03 /* 16-bit, RW */ |
#define LM92_REG_TEMP_HIGH 0x05 /* 16-bit, RW */ |
#define LM92_REG_TEMP_HYST 0x02 /* 16-bit, RW */ |
#define LM92_REG_TEMP_LOW 0x04 /* 16-bit, RW */ |
Value:
int
err = kstrtol(
buf, 10, &val); \
if (err) \
i2c_smbus_write_word_swapped(client,
reg, data->value); \
mutex_unlock(&data->update_lock); \
}
Definition at line 157 of file lm92.c.
#define show_temp |
( |
|
value | ) |
|
Value:
Definition at line 145 of file lm92.c.
MODULE_DESCRIPTION |
( |
"LM92/MAX6635 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm92_id |
|
|
) |
| |
module_i2c_driver |
( |
lm92_driver |
| ) |
|
show_temp |
( |
temp1_input |
| ) |
|