#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>
Go to the source code of this file.
#define G760A_DEFAULT_CLK 32768 |
#define G760A_DEFAULT_FAN_DIV 2 |
#define G760A_REG_FAN_STA_RPM_LOW 0x2 /* below 1920rpm */ |
#define G760A_REG_FAN_STA_RPM_OFF 0x1 /* +/-20% off */ |
#define G760A_UPDATE_INTERVAL (HZ) |
#define PWM_FROM_CNT |
( |
|
cnt | ) |
(0xff-(cnt)) |
#define PWM_TO_CNT |
( |
|
pwm | ) |
(0xff-(pwm)) |
- Enumerator:
G760A_REG_SET_CNT |
|
G760A_REG_ACT_CNT |
|
G760A_REG_FAN_STA |
|
Definition at line 33 of file g760a.c.
MODULE_DESCRIPTION |
( |
"GMT G760A driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
g760a_id |
|
|
) |
| |
module_i2c_driver |
( |
g760a_driver |
| ) |
|