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

Data Structures

struct  max6642_data
 

Macros

#define MAX6642_REG_R_MAN_ID   0xFE
 
#define MAX6642_REG_R_CONFIG   0x03
 
#define MAX6642_REG_W_CONFIG   0x09
 
#define MAX6642_REG_R_STATUS   0x02
 
#define MAX6642_REG_R_LOCAL_TEMP   0x00
 
#define MAX6642_REG_R_LOCAL_TEMPL   0x11
 
#define MAX6642_REG_R_LOCAL_HIGH   0x05
 
#define MAX6642_REG_W_LOCAL_HIGH   0x0B
 
#define MAX6642_REG_R_REMOTE_TEMP   0x01
 
#define MAX6642_REG_R_REMOTE_TEMPL   0x10
 
#define MAX6642_REG_R_REMOTE_HIGH   0x07
 
#define MAX6642_REG_W_REMOTE_HIGH   0x0D
 

Functions

 MODULE_DEVICE_TABLE (i2c, max6642_id)
 
 module_i2c_driver (max6642_driver)
 
 MODULE_AUTHOR ("Per Dalen <[email protected]>")
 
 MODULE_DESCRIPTION ("MAX6642 sensor driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX6642_REG_R_CONFIG   0x03

Definition at line 54 of file max6642.c.

#define MAX6642_REG_R_LOCAL_HIGH   0x05

Definition at line 59 of file max6642.c.

#define MAX6642_REG_R_LOCAL_TEMP   0x00

Definition at line 57 of file max6642.c.

#define MAX6642_REG_R_LOCAL_TEMPL   0x11

Definition at line 58 of file max6642.c.

#define MAX6642_REG_R_MAN_ID   0xFE

Definition at line 53 of file max6642.c.

#define MAX6642_REG_R_REMOTE_HIGH   0x07

Definition at line 63 of file max6642.c.

#define MAX6642_REG_R_REMOTE_TEMP   0x01

Definition at line 61 of file max6642.c.

#define MAX6642_REG_R_REMOTE_TEMPL   0x10

Definition at line 62 of file max6642.c.

#define MAX6642_REG_R_STATUS   0x02

Definition at line 56 of file max6642.c.

#define MAX6642_REG_W_CONFIG   0x09

Definition at line 55 of file max6642.c.

#define MAX6642_REG_W_LOCAL_HIGH   0x0B

Definition at line 60 of file max6642.c.

#define MAX6642_REG_W_REMOTE_HIGH   0x0D

Definition at line 64 of file max6642.c.

Function Documentation

MODULE_AUTHOR ( "Per Dalen <[email protected]>"  )
MODULE_DESCRIPTION ( "MAX6642 sensor driver )
MODULE_DEVICE_TABLE ( i2c  ,
max6642_id   
)
module_i2c_driver ( max6642_driver  )
MODULE_LICENSE ( "GPL"  )