Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
lm3630_bl.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.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/lm3630_bl.h>

Go to the source code of this file.

Data Structures

struct  lm3630_chip_data
 

Macros

#define REG_CTRL   0x00
 
#define REG_CONFIG   0x01
 
#define REG_BRT_A   0x03
 
#define REG_BRT_B   0x04
 
#define REG_INT_STATUS   0x09
 
#define REG_INT_EN   0x0A
 
#define REG_FAULT   0x0B
 
#define REG_PWM_OUTLOW   0x12
 
#define REG_PWM_OUTHIGH   0x13
 
#define REG_MAX   0x1F
 
#define INT_DEBOUNCE_MSEC   10
 

Enumerations

enum  lm3630_leds { BLED_ALL = 0, BLED_1, BLED_2 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, lm3630_id)
 
 module_i2c_driver (lm3630_i2c_driver)
 
 MODULE_DESCRIPTION ("Texas Instruments Backlight driver for LM3630")
 
 MODULE_AUTHOR ("G.Shark Jeong <[email protected]>")
 
 MODULE_AUTHOR ("Daniel Jeong <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define INT_DEBOUNCE_MSEC   10

Definition at line 32 of file lm3630_bl.c.

#define REG_BRT_A   0x03

Definition at line 23 of file lm3630_bl.c.

#define REG_BRT_B   0x04

Definition at line 24 of file lm3630_bl.c.

#define REG_CONFIG   0x01

Definition at line 22 of file lm3630_bl.c.

#define REG_CTRL   0x00

Definition at line 21 of file lm3630_bl.c.

#define REG_FAULT   0x0B

Definition at line 27 of file lm3630_bl.c.

#define REG_INT_EN   0x0A

Definition at line 26 of file lm3630_bl.c.

#define REG_INT_STATUS   0x09

Definition at line 25 of file lm3630_bl.c.

#define REG_MAX   0x1F

Definition at line 30 of file lm3630_bl.c.

#define REG_PWM_OUTHIGH   0x13

Definition at line 29 of file lm3630_bl.c.

#define REG_PWM_OUTLOW   0x12

Definition at line 28 of file lm3630_bl.c.

Enumeration Type Documentation

Enumerator:
BLED_ALL 
BLED_1 
BLED_2 

Definition at line 34 of file lm3630_bl.c.

Function Documentation

MODULE_AUTHOR ( "G.Shark Jeong <[email protected]>"  )
MODULE_AUTHOR ( "Daniel Jeong <[email protected]>"  )
MODULE_DESCRIPTION ( "Texas Instruments Backlight driver for LM3630"  )
MODULE_DEVICE_TABLE ( i2c  ,
lm3630_id   
)
module_i2c_driver ( lm3630_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )