#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/device.h>
#include <linux/jiffies.h>
Go to the source code of this file.
#define DRIVER_NAME "tmp102" |
#define TMP102_CONF_AL 0x0020 |
#define TMP102_CONF_CR0 0x0040 |
#define TMP102_CONF_CR1 0x0080 |
#define TMP102_CONF_EM 0x0010 |
#define TMP102_CONF_F0 0x0800 |
#define TMP102_CONF_F1 0x1000 |
#define TMP102_CONF_OS 0x8000 |
#define TMP102_CONF_POL 0x0400 |
#define TMP102_CONF_R0 0x2000 |
#define TMP102_CONF_R1 0x4000 |
#define TMP102_CONF_REG 0x01 |
#define TMP102_CONF_SD 0x0100 |
#define TMP102_CONF_TM 0x0200 |
#define TMP102_DEV_PM_OPS NULL |
#define TMP102_TEMP_REG 0x00 |
#define TMP102_THIGH_REG 0x03 |
#define TMP102_TLOW_REG 0x02 |
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
tmp102_id |
|
|
) |
| |
module_i2c_driver |
( |
tmp102_driver |
| ) |
|