Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
adt7411.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/mutex.h>
#include <linux/jiffies.h>
#include <linux/i2c.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  adt7411_data
 

Macros

#define ADT7411_REG_INT_TEMP_VDD_LSB   0x03
 
#define ADT7411_REG_EXT_TEMP_AIN14_LSB   0x04
 
#define ADT7411_REG_VDD_MSB   0x06
 
#define ADT7411_REG_INT_TEMP_MSB   0x07
 
#define ADT7411_REG_EXT_TEMP_AIN1_MSB   0x08
 
#define ADT7411_REG_CFG1   0x18
 
#define ADT7411_CFG1_START_MONITOR   (1 << 0)
 
#define ADT7411_REG_CFG2   0x19
 
#define ADT7411_CFG2_DISABLE_AVG   (1 << 5)
 
#define ADT7411_REG_CFG3   0x1a
 
#define ADT7411_CFG3_ADC_CLK_225   (1 << 0)
 
#define ADT7411_CFG3_REF_VDD   (1 << 4)
 
#define ADT7411_REG_DEVICE_ID   0x4d
 
#define ADT7411_REG_MANUFACTURER_ID   0x4e
 
#define ADT7411_DEVICE_ID   0x2
 
#define ADT7411_MANUFACTURER_ID   0x41
 
#define ADT7411_BIT_ATTR(__name, __reg, __bit)
 

Functions

 MODULE_DEVICE_TABLE (i2c, adt7411_id)
 
 module_i2c_driver (adt7411_driver)
 
 MODULE_AUTHOR ("Sascha Hauer <[email protected]> and ""Wolfram Sang <[email protected]>")
 
 MODULE_DESCRIPTION ("ADT7411 driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define ADT7411_BIT_ATTR (   __name,
  __reg,
  __bit 
)
Value:
SENSOR_DEVICE_ATTR_2(__name, S_IRUGO | S_IWUSR, adt7411_show_bit, \
adt7411_set_bit, __bit, __reg)

Definition at line 213 of file adt7411.c.

#define ADT7411_CFG1_START_MONITOR   (1 << 0)

Definition at line 32 of file adt7411.c.

#define ADT7411_CFG2_DISABLE_AVG   (1 << 5)

Definition at line 35 of file adt7411.c.

#define ADT7411_CFG3_ADC_CLK_225   (1 << 0)

Definition at line 38 of file adt7411.c.

#define ADT7411_CFG3_REF_VDD   (1 << 4)

Definition at line 39 of file adt7411.c.

#define ADT7411_DEVICE_ID   0x2

Definition at line 44 of file adt7411.c.

#define ADT7411_MANUFACTURER_ID   0x41

Definition at line 45 of file adt7411.c.

#define ADT7411_REG_CFG1   0x18

Definition at line 31 of file adt7411.c.

#define ADT7411_REG_CFG2   0x19

Definition at line 34 of file adt7411.c.

#define ADT7411_REG_CFG3   0x1a

Definition at line 37 of file adt7411.c.

#define ADT7411_REG_DEVICE_ID   0x4d

Definition at line 41 of file adt7411.c.

#define ADT7411_REG_EXT_TEMP_AIN14_LSB   0x04

Definition at line 26 of file adt7411.c.

#define ADT7411_REG_EXT_TEMP_AIN1_MSB   0x08

Definition at line 29 of file adt7411.c.

#define ADT7411_REG_INT_TEMP_MSB   0x07

Definition at line 28 of file adt7411.c.

#define ADT7411_REG_INT_TEMP_VDD_LSB   0x03

Definition at line 25 of file adt7411.c.

#define ADT7411_REG_MANUFACTURER_ID   0x4e

Definition at line 42 of file adt7411.c.

#define ADT7411_REG_VDD_MSB   0x06

Definition at line 27 of file adt7411.c.

Function Documentation

MODULE_AUTHOR ( "Sascha Hauer <[email protected]> and ""Wolfram Sang <[email protected]>"  )
MODULE_DESCRIPTION ( "ADT7411 driver )
MODULE_DEVICE_TABLE ( i2c  ,
adt7411_id   
)
module_i2c_driver ( adt7411_driver  )
MODULE_LICENSE ( "GPL v2 )