#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/jiffies.h>
Go to the source code of this file.
| #define LTC4261_ADIN2_H 0x06 |
| #define LTC4261_ADIN2_L 0x07 |
| #define LTC4261_ADIN_H 0x08 |
| #define LTC4261_ADIN_L 0x09 |
| #define LTC4261_ALERT 0x02 |
| #define LTC4261_CONTROL 0x03 |
| #define LTC4261_FAULT 0x01 |
| #define LTC4261_SENSE_H 0x04 |
| #define LTC4261_SENSE_L 0x05 |
| #define LTC4261_STATUS 0x00 /* readonly */ |
| #define LTC4261_VALUE |
( |
|
name, |
|
|
|
ltc4261_cmd_idx |
|
) |
| |
Value:
ltc4261_show_value,
NULL, ltc4261_cmd_idx)
Definition at line 173 of file ltc4261.c.
| LTC4261_BOOL |
( |
in1_min_alarm |
, |
|
|
FAULT_UV |
|
|
) |
| |
| LTC4261_BOOL |
( |
in1_max_alarm |
, |
|
|
FAULT_OV |
|
|
) |
| |
| LTC4261_BOOL |
( |
in2_min_alarm |
, |
|
|
FAULT_UV |
|
|
) |
| |
| LTC4261_BOOL |
( |
in2_max_alarm |
, |
|
|
FAULT_OV |
|
|
) |
| |
| LTC4261_BOOL |
( |
curr1_max_alarm |
, |
|
|
FAULT_OC |
|
|
) |
| |
| MODULE_DESCRIPTION |
( |
"LTC4261 driver" |
| ) |
|
| MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
ltc4261_id |
|
|
) |
| |
| module_i2c_driver |
( |
ltc4261_driver |
| ) |
|