Linux Kernel
3.7.1
|
#include <linux/module.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/delay.h>
#include <linux/log2.h>
#include <linux/kthread.h>
#include <linux/slab.h>
Go to the source code of this file.
Data Structures | |
struct | adt7470_data |
Functions | |
MODULE_DEVICE_TABLE (i2c, adt7470_id) | |
module_i2c_driver (adt7470_driver) | |
MODULE_AUTHOR ("Darrick J. Wong <[email protected]>") | |
MODULE_DESCRIPTION ("ADT7470 driver") | |
MODULE_LICENSE ("GPL") | |
#define ADT7470_REG_FAN | ( | x | ) | (ADT7470_REG_FAN_BASE_ADDR + ((x) * 2)) |
#define ADT7470_REG_FAN_MAX | ( | x | ) | (ADT7470_REG_FAN_MAX_BASE_ADDR + ((x) * 2)) |
#define ADT7470_REG_FAN_MIN | ( | x | ) | (ADT7470_REG_FAN_MIN_BASE_ADDR + ((x) * 2)) |
#define ADT7470_REG_PWM | ( | x | ) | (ADT7470_REG_PWM_BASE_ADDR + (x)) |
#define ADT7470_REG_PWM_CFG | ( | x | ) | (ADT7470_REG_PWM_CFG_BASE_ADDR + ((x) / 2)) |
#define ADT7470_REG_PWM_MAX | ( | x | ) | (ADT7470_REG_PWM_MAX_BASE_ADDR + (x)) |
#define ADT7470_REG_PWM_MIN | ( | x | ) | (ADT7470_REG_PWM_MIN_BASE_ADDR + (x)) |
#define ADT7470_REG_PWM_TMIN | ( | x | ) | (ADT7470_REG_PWM_TEMP_MIN_BASE_ADDR + (x)) |
#define ADT7470_TEMP_MIN_REG | ( | x | ) | (ADT7470_REG_TEMP_LIMITS_BASE_ADDR + ((x) * 2)) |
#define ADT7470_TEMP_REG | ( | x | ) | (ADT7470_REG_TEMP_BASE_ADDR + (x)) |
#define FAN_DATA_VALID | ( | x | ) | ((x) && (x) != FAN_PERIOD_INVALID) |
#define FAN_RPM_TO_PERIOD FAN_PERIOD_TO_RPM |
MODULE_AUTHOR | ( | "Darrick J. Wong <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "ADT7470 driver" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
adt7470_id | |||
) |
module_i2c_driver | ( | adt7470_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |