Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ds620.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>
#include <linux/i2c/ds620.h>

Go to the source code of this file.

Data Structures

struct  ds620_data
 

Macros

#define DS620_REG_CONFIG_DONE   0x8000
 
#define DS620_REG_CONFIG_NVB   0x4000
 
#define DS620_REG_CONFIG_THF   0x2000
 
#define DS620_REG_CONFIG_TLF   0x1000
 
#define DS620_REG_CONFIG_R1   0x0800
 
#define DS620_REG_CONFIG_R0   0x0400
 
#define DS620_REG_CONFIG_AUTOC   0x0200
 
#define DS620_REG_CONFIG_1SHOT   0x0100
 
#define DS620_REG_CONFIG_PO2   0x0080
 
#define DS620_REG_CONFIG_PO1   0x0040
 
#define DS620_REG_CONFIG_A2   0x0020
 
#define DS620_REG_CONFIG_A1   0x0010
 
#define DS620_REG_CONFIG_A0   0x0008
 
#define DS620_REG_CONF   0xAC /* word, RW */
 
#define DS620_COM_START   0x51 /* no data */
 
#define DS620_COM_STOP   0x22 /* no data */
 

Functions

 MODULE_DEVICE_TABLE (i2c, ds620_id)
 
 module_i2c_driver (ds620_driver)
 
 MODULE_AUTHOR ("Roland Stigge <[email protected]>")
 
 MODULE_DESCRIPTION ("DS620 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DS620_COM_START   0x51 /* no data */

Definition at line 65 of file ds620.c.

#define DS620_COM_STOP   0x22 /* no data */

Definition at line 66 of file ds620.c.

#define DS620_REG_CONF   0xAC /* word, RW */

Definition at line 64 of file ds620.c.

#define DS620_REG_CONFIG_1SHOT   0x0100

Definition at line 50 of file ds620.c.

#define DS620_REG_CONFIG_A0   0x0008

Definition at line 55 of file ds620.c.

#define DS620_REG_CONFIG_A1   0x0010

Definition at line 54 of file ds620.c.

#define DS620_REG_CONFIG_A2   0x0020

Definition at line 53 of file ds620.c.

#define DS620_REG_CONFIG_AUTOC   0x0200

Definition at line 49 of file ds620.c.

#define DS620_REG_CONFIG_DONE   0x8000

Definition at line 43 of file ds620.c.

#define DS620_REG_CONFIG_NVB   0x4000

Definition at line 44 of file ds620.c.

#define DS620_REG_CONFIG_PO1   0x0040

Definition at line 52 of file ds620.c.

#define DS620_REG_CONFIG_PO2   0x0080

Definition at line 51 of file ds620.c.

#define DS620_REG_CONFIG_R0   0x0400

Definition at line 48 of file ds620.c.

#define DS620_REG_CONFIG_R1   0x0800

Definition at line 47 of file ds620.c.

#define DS620_REG_CONFIG_THF   0x2000

Definition at line 45 of file ds620.c.

#define DS620_REG_CONFIG_TLF   0x1000

Definition at line 46 of file ds620.c.

Function Documentation

MODULE_AUTHOR ( "Roland Stigge <[email protected]>"  )
MODULE_DESCRIPTION ( "DS620 driver )
MODULE_DEVICE_TABLE ( i2c  ,
ds620_id   
)
module_i2c_driver ( ds620_driver  )
MODULE_LICENSE ( "GPL"  )