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

Go to the source code of this file.

Macros

#define LM73_REG_INPUT   0x00
 
#define LM73_REG_CONF   0x01
 
#define LM73_REG_MAX   0x02
 
#define LM73_REG_MIN   0x03
 
#define LM73_REG_CTRL   0x04
 
#define LM73_REG_ID   0x07
 
#define LM73_ID   0x9001 /* 0x0190, byte-swapped */
 
#define DRVNAME   "lm73"
 
#define LM73_TEMP_MIN   (-40)
 
#define LM73_TEMP_MAX   150
 

Functions

 MODULE_DEVICE_TABLE (i2c, lm73_ids)
 
 module_i2c_driver (lm73_driver)
 
 MODULE_AUTHOR ("Guillaume Ligneul <[email protected]>")
 
 MODULE_DESCRIPTION ("LM73 driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRVNAME   "lm73"

Definition at line 38 of file lm73.c.

#define LM73_ID   0x9001 /* 0x0190, byte-swapped */

Definition at line 37 of file lm73.c.

#define LM73_REG_CONF   0x01

Definition at line 31 of file lm73.c.

#define LM73_REG_CTRL   0x04

Definition at line 34 of file lm73.c.

#define LM73_REG_ID   0x07

Definition at line 35 of file lm73.c.

#define LM73_REG_INPUT   0x00

Definition at line 30 of file lm73.c.

#define LM73_REG_MAX   0x02

Definition at line 32 of file lm73.c.

#define LM73_REG_MIN   0x03

Definition at line 33 of file lm73.c.

#define LM73_TEMP_MAX   150

Definition at line 40 of file lm73.c.

#define LM73_TEMP_MIN   (-40)

Definition at line 39 of file lm73.c.

Function Documentation

MODULE_AUTHOR ( "Guillaume Ligneul <[email protected]>"  )
MODULE_DESCRIPTION ( "LM73 driver )
MODULE_DEVICE_TABLE ( i2c  ,
lm73_ids   
)
module_i2c_driver ( lm73_driver  )
MODULE_LICENSE ( "GPL"  )