#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>
#include <linux/i2c/ds620.h>
Go to the source code of this file.
#define DS620_COM_START 0x51 /* no data */ |
#define DS620_COM_STOP 0x22 /* no data */ |
#define DS620_REG_CONF 0xAC /* word, RW */ |
#define DS620_REG_CONFIG_1SHOT 0x0100 |
#define DS620_REG_CONFIG_A0 0x0008 |
#define DS620_REG_CONFIG_A1 0x0010 |
#define DS620_REG_CONFIG_A2 0x0020 |
#define DS620_REG_CONFIG_AUTOC 0x0200 |
#define DS620_REG_CONFIG_DONE 0x8000 |
#define DS620_REG_CONFIG_NVB 0x4000 |
#define DS620_REG_CONFIG_PO1 0x0040 |
#define DS620_REG_CONFIG_PO2 0x0080 |
#define DS620_REG_CONFIG_R0 0x0400 |
#define DS620_REG_CONFIG_R1 0x0800 |
#define DS620_REG_CONFIG_THF 0x2000 |
#define DS620_REG_CONFIG_TLF 0x1000 |
MODULE_DESCRIPTION |
( |
"DS620 driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
ds620_id |
|
|
) |
| |
module_i2c_driver |
( |
ds620_driver |
| ) |
|