Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tsl2550.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  tsl2550_data
 

Macros

#define TSL2550_DRV_NAME   "tsl2550"
 
#define DRIVER_VERSION   "1.2"
 
#define TSL2550_POWER_DOWN   0x00
 
#define TSL2550_POWER_UP   0x03
 
#define TSL2550_STANDARD_RANGE   0x18
 
#define TSL2550_EXTENDED_RANGE   0x1d
 
#define TSL2550_READ_ADC0   0x43
 
#define TSL2550_READ_ADC1   0x83
 
#define TSL2550_MAX_LUX   1846
 
#define tsl2550_suspend   NULL
 
#define tsl2550_resume   NULL
 

Functions

 MODULE_DEVICE_TABLE (i2c, tsl2550_id)
 
 module_i2c_driver (tsl2550_driver)
 
 MODULE_AUTHOR ("Rodolfo Giometti <[email protected]>")
 
 MODULE_DESCRIPTION ("TSL2550 ambient light sensor driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRIVER_VERSION)
 

Macro Definition Documentation

#define DRIVER_VERSION   "1.2"

Definition at line 29 of file tsl2550.c.

#define TSL2550_DRV_NAME   "tsl2550"

Definition at line 28 of file tsl2550.c.

#define TSL2550_EXTENDED_RANGE   0x1d

Definition at line 38 of file tsl2550.c.

#define TSL2550_MAX_LUX   1846

Definition at line 112 of file tsl2550.c.

#define TSL2550_POWER_DOWN   0x00

Definition at line 35 of file tsl2550.c.

#define TSL2550_POWER_UP   0x03

Definition at line 36 of file tsl2550.c.

#define TSL2550_READ_ADC0   0x43

Definition at line 39 of file tsl2550.c.

#define TSL2550_READ_ADC1   0x83

Definition at line 40 of file tsl2550.c.

#define tsl2550_resume   NULL

Definition at line 435 of file tsl2550.c.

#define TSL2550_STANDARD_RANGE   0x18

Definition at line 37 of file tsl2550.c.

#define tsl2550_suspend   NULL

Definition at line 434 of file tsl2550.c.

Function Documentation

MODULE_AUTHOR ( "Rodolfo Giometti <[email protected]>"  )
MODULE_DESCRIPTION ( "TSL2550 ambient light sensor driver )
MODULE_DEVICE_TABLE ( i2c  ,
tsl2550_id   
)
module_i2c_driver ( tsl2550_driver  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRIVER_VERSION  )