Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ltc4215.c File Reference
#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.

Data Structures

struct  ltc4215_data
 

Macros

#define LTC4215_VOLTAGE(name, ltc4215_cmd_idx)
 
#define LTC4215_CURRENT(name)
 
#define LTC4215_POWER(name)
 
#define LTC4215_ALARM(name, mask, reg)
 

Enumerations

enum  ltc4215_cmd {
  LTC4215_CONTROL = 0x00, LTC4215_ALERT = 0x01, LTC4215_STATUS = 0x02, LTC4215_FAULT = 0x03,
  LTC4215_SENSE = 0x04, LTC4215_SOURCE = 0x05, LTC4215_ADIN = 0x06
}
 

Functions

 LTC4215_CURRENT (curr1_input)
 
 LTC4215_ALARM (curr1_max_alarm,(1<< 2), LTC4215_STATUS)
 
 LTC4215_POWER (power1_input)
 
 LTC4215_VOLTAGE (in1_input, LTC4215_ADIN)
 
 LTC4215_ALARM (in1_max_alarm,(1<< 0), LTC4215_STATUS)
 
 LTC4215_ALARM (in1_min_alarm,(1<< 1), LTC4215_STATUS)
 
 LTC4215_VOLTAGE (in2_input, LTC4215_SOURCE)
 
 LTC4215_ALARM (in2_min_alarm,(1<< 3), LTC4215_STATUS)
 
 MODULE_DEVICE_TABLE (i2c, ltc4215_id)
 
 module_i2c_driver (ltc4215_driver)
 
 MODULE_AUTHOR ("Ira W. Snyder <[email protected]>")
 
 MODULE_DESCRIPTION ("LTC4215 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define LTC4215_ALARM (   name,
  mask,
  reg 
)
Value:
ltc4215_show_alarm, NULL, (mask), reg)

Definition at line 201 of file ltc4215.c.

#define LTC4215_CURRENT (   name)
Value:
ltc4215_show_current, NULL, 0);

Definition at line 193 of file ltc4215.c.

#define LTC4215_POWER (   name)
Value:
ltc4215_show_power, NULL, 0);

Definition at line 197 of file ltc4215.c.

#define LTC4215_VOLTAGE (   name,
  ltc4215_cmd_idx 
)
Value:
ltc4215_show_voltage, NULL, ltc4215_cmd_idx)

Definition at line 189 of file ltc4215.c.

Enumeration Type Documentation

Enumerator:
LTC4215_CONTROL 
LTC4215_ALERT 
LTC4215_STATUS 
LTC4215_FAULT 
LTC4215_SENSE 
LTC4215_SOURCE 
LTC4215_ADIN 

Definition at line 25 of file ltc4215.c.

Function Documentation

LTC4215_ALARM ( curr1_max_alarm  ,
(1<< 2)  ,
LTC4215_STATUS   
)
LTC4215_ALARM ( in1_max_alarm  ,
(1<< 0)  ,
LTC4215_STATUS   
)
LTC4215_ALARM ( in1_min_alarm  ,
(1<< 1)  ,
LTC4215_STATUS   
)
LTC4215_ALARM ( in2_min_alarm  ,
(1<< 3)  ,
LTC4215_STATUS   
)
LTC4215_CURRENT ( curr1_input  )
LTC4215_POWER ( power1_input  )
LTC4215_VOLTAGE ( in1_input  ,
LTC4215_ADIN   
)
LTC4215_VOLTAGE ( in2_input  ,
LTC4215_SOURCE   
)
MODULE_AUTHOR ( "Ira W. Snyder <[email protected]>"  )
MODULE_DESCRIPTION ( "LTC4215 driver )
MODULE_DEVICE_TABLE ( i2c  ,
ltc4215_id   
)
module_i2c_driver ( ltc4215_driver  )
MODULE_LICENSE ( "GPL"  )