Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ds1682.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/sysfs.h>
#include <linux/ctype.h>
#include <linux/hwmon-sysfs.h>

Go to the source code of this file.

Macros

#define DS1682_REG_CONFIG   0x00
 
#define DS1682_REG_ALARM   0x01
 
#define DS1682_REG_ELAPSED   0x05
 
#define DS1682_REG_EVT_CNTR   0x09
 
#define DS1682_REG_EEPROM   0x0b
 
#define DS1682_REG_RESET   0x1d
 
#define DS1682_REG_WRITE_DISABLE   0x1e
 
#define DS1682_REG_WRITE_MEM_DISABLE   0x1f
 
#define DS1682_EEPROM_SIZE   10
 

Functions

 MODULE_DEVICE_TABLE (i2c, ds1682_id)
 
 module_i2c_driver (ds1682_driver)
 
 MODULE_AUTHOR ("Grant Likely <grant.likely@secretlab.ca>")
 
 MODULE_DESCRIPTION ("DS1682 Elapsed Time Indicator driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DS1682_EEPROM_SIZE   10

Definition at line 53 of file ds1682.c.

#define DS1682_REG_ALARM   0x01

Definition at line 45 of file ds1682.c.

#define DS1682_REG_CONFIG   0x00

Definition at line 44 of file ds1682.c.

#define DS1682_REG_EEPROM   0x0b

Definition at line 48 of file ds1682.c.

#define DS1682_REG_ELAPSED   0x05

Definition at line 46 of file ds1682.c.

#define DS1682_REG_EVT_CNTR   0x09

Definition at line 47 of file ds1682.c.

#define DS1682_REG_RESET   0x1d

Definition at line 49 of file ds1682.c.

#define DS1682_REG_WRITE_DISABLE   0x1e

Definition at line 50 of file ds1682.c.

#define DS1682_REG_WRITE_MEM_DISABLE   0x1f

Definition at line 51 of file ds1682.c.

Function Documentation

MODULE_AUTHOR ( "Grant Likely <grant.likely@secretlab.ca>"  )
MODULE_DESCRIPTION ( "DS1682 Elapsed Time Indicator driver )
MODULE_DEVICE_TABLE ( i2c  ,
ds1682_id   
)
module_i2c_driver ( ds1682_driver  )
MODULE_LICENSE ( "GPL"  )