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

Go to the source code of this file.

Data Structures

struct  ad7314_data
 

Macros

#define AD7314_TEMP_MASK   0x7FE0
 
#define AD7314_TEMP_SHIFT   5
 
#define ADT7301_TEMP_MASK   0x3FFF
 

Enumerations

enum  ad7314_variant { adt7301, adt7302, ad7314 }
 

Functions

 MODULE_DEVICE_TABLE (spi, ad7314_id)
 
 module_spi_driver (ad7314_driver)
 
 MODULE_AUTHOR ("Sonic Zhang <[email protected]>")
 
 MODULE_DESCRIPTION ("Analog Devices AD7314, ADT7301 and ADT7302 digital"" temperature sensor driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define AD7314_TEMP_MASK   0x7FE0

Definition at line 23 of file ad7314.c.

#define AD7314_TEMP_SHIFT   5

Definition at line 24 of file ad7314.c.

#define ADT7301_TEMP_MASK   0x3FFF

Definition at line 29 of file ad7314.c.

Enumeration Type Documentation

Enumerator:
adt7301 
adt7302 
ad7314 

Definition at line 31 of file ad7314.c.

Function Documentation

MODULE_AUTHOR ( "Sonic Zhang <[email protected]>"  )
MODULE_DESCRIPTION ( "Analog Devices  AD7314,
ADT7301 and ADT7302 digital""temperature sensor driver  
)
MODULE_DEVICE_TABLE ( spi  ,
ad7314_id   
)
MODULE_LICENSE ( "GPL v2 )
module_spi_driver ( ad7314_driver  )