Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lm3639_bl.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/leds.h>
#include <linux/backlight.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/interrupt.h>
#include <linux/regmap.h>
#include <linux/platform_data/lm3639_bl.h>

Go to the source code of this file.

Data Structures

struct  lm3639_chip_data
 

Macros

#define REG_DEV_ID   0x00
 
#define REG_CHECKSUM   0x01
 
#define REG_BL_CONF_1   0x02
 
#define REG_BL_CONF_2   0x03
 
#define REG_BL_CONF_3   0x04
 
#define REG_BL_CONF_4   0x05
 
#define REG_FL_CONF_1   0x06
 
#define REG_FL_CONF_2   0x07
 
#define REG_FL_CONF_3   0x08
 
#define REG_IO_CTRL   0x09
 
#define REG_ENABLE   0x0A
 
#define REG_FLAG   0x0B
 
#define REG_MAX   REG_FLAG
 

Functions

 MODULE_DEVICE_TABLE (i2c, lm3639_id)
 
 module_i2c_driver (lm3639_i2c_driver)
 
 MODULE_DESCRIPTION ("Texas Instruments Backlight+Flash LED driver for LM3639")
 
 MODULE_AUTHOR ("Daniel Jeong <[email protected]>")
 
 MODULE_AUTHOR ("G.Shark Jeong <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define REG_BL_CONF_1   0x02

Definition at line 24 of file lm3639_bl.c.

#define REG_BL_CONF_2   0x03

Definition at line 25 of file lm3639_bl.c.

#define REG_BL_CONF_3   0x04

Definition at line 26 of file lm3639_bl.c.

#define REG_BL_CONF_4   0x05

Definition at line 27 of file lm3639_bl.c.

#define REG_CHECKSUM   0x01

Definition at line 23 of file lm3639_bl.c.

#define REG_DEV_ID   0x00

Definition at line 22 of file lm3639_bl.c.

#define REG_ENABLE   0x0A

Definition at line 32 of file lm3639_bl.c.

#define REG_FL_CONF_1   0x06

Definition at line 28 of file lm3639_bl.c.

#define REG_FL_CONF_2   0x07

Definition at line 29 of file lm3639_bl.c.

#define REG_FL_CONF_3   0x08

Definition at line 30 of file lm3639_bl.c.

#define REG_FLAG   0x0B

Definition at line 33 of file lm3639_bl.c.

#define REG_IO_CTRL   0x09

Definition at line 31 of file lm3639_bl.c.

#define REG_MAX   REG_FLAG

Definition at line 34 of file lm3639_bl.c.

Function Documentation

MODULE_AUTHOR ( "Daniel Jeong <[email protected]>"  )
MODULE_AUTHOR ( "G.Shark Jeong <[email protected]>"  )
MODULE_DESCRIPTION ( "Texas Instruments Backlight+Flash LED driver for LM3639"  )
MODULE_DEVICE_TABLE ( i2c  ,
lm3639_id   
)
module_i2c_driver ( lm3639_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )