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

Go to the source code of this file.

Data Structures

struct  lm70
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRVNAME   "lm70"
 
#define LM70_CHIP_LM70   0 /* original NS LM70 */
 
#define LM70_CHIP_TMP121   1 /* TI TMP121/TMP123 */
 
#define LM70_CHIP_LM71   2 /* NS LM71 */
 
#define LM70_CHIP_LM74   3 /* NS LM74 */
 

Functions

 MODULE_DEVICE_TABLE (spi, lm70_ids)
 
 module_spi_driver (lm70_driver)
 
 MODULE_AUTHOR ("Kaiwan N Billimoria")
 
 MODULE_DESCRIPTION ("NS LM70 and compatibles Linux driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRVNAME   "lm70"

Definition at line 42 of file lm70.c.

#define LM70_CHIP_LM70   0 /* original NS LM70 */

Definition at line 44 of file lm70.c.

#define LM70_CHIP_LM71   2 /* NS LM71 */

Definition at line 46 of file lm70.c.

#define LM70_CHIP_LM74   3 /* NS LM74 */

Definition at line 47 of file lm70.c.

#define LM70_CHIP_TMP121   1 /* TI TMP121/TMP123 */

Definition at line 45 of file lm70.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 27 of file lm70.c.

Function Documentation

MODULE_AUTHOR ( "Kaiwan N Billimoria"  )
MODULE_DESCRIPTION ( "NS LM70 and compatibles Linux driver )
MODULE_DEVICE_TABLE ( spi  ,
lm70_ids   
)
MODULE_LICENSE ( "GPL"  )
module_spi_driver ( lm70_driver  )