#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>
Go to the source code of this file.
#define LM77_REG_CONF 0x01 |
#define LM77_REG_TEMP 0x00 |
#define LM77_REG_TEMP_CRIT 0x03 |
#define LM77_REG_TEMP_HYST 0x02 |
#define LM77_REG_TEMP_MAX 0x05 |
#define LM77_REG_TEMP_MIN 0x04 |
#define LM77_TEMP_MAX 125000 |
#define LM77_TEMP_MIN (-55000) |
Value:
int
err = kstrtol(
buf, 10, &val); \
if (err) \
lm77_write_value(client,
reg, LM77_TEMP_TO_REG(data->value)); \
mutex_unlock(&data->update_lock); \
}
Definition at line 151 of file lm77.c.
Value:
Definition at line 116 of file lm77.c.
MODULE_DESCRIPTION |
( |
"LM77 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm77_id |
|
|
) |
| |
module_i2c_driver |
( |
lm77_driver |
| ) |
|