Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
da903x_bl.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/fb.h>
#include <linux/backlight.h>
#include <linux/mfd/da903x.h>
#include <linux/slab.h>
#include <linux/module.h>

Go to the source code of this file.

Data Structures

struct  da903x_backlight_data
 

Macros

#define DA9030_WLED_CONTROL   0x25
 
#define DA9030_WLED_CP_EN   (1 << 6)
 
#define DA9030_WLED_TRIM(x)   ((x) & 0x7)
 
#define DA9034_WLED_CONTROL1   0x3C
 
#define DA9034_WLED_CONTROL2   0x3D
 
#define DA9034_WLED_ISET(x)   ((x) & 0x1f)
 
#define DA9034_WLED_BOOST_EN   (1 << 5)
 
#define DA9030_MAX_BRIGHTNESS   7
 
#define DA9034_MAX_BRIGHTNESS   0x7f
 

Functions

 module_platform_driver (da903x_backlight_driver)
 
 MODULE_DESCRIPTION ("Backlight Driver for Dialog Semiconductor DA9030/DA9034")
 
 MODULE_AUTHOR ("Eric Miao <[email protected]>""Mike Rapoport <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:da903x-backlight")
 

Macro Definition Documentation

#define DA9030_MAX_BRIGHTNESS   7

Definition at line 34 of file da903x_bl.c.

#define DA9030_WLED_CONTROL   0x25

Definition at line 24 of file da903x_bl.c.

#define DA9030_WLED_CP_EN   (1 << 6)

Definition at line 25 of file da903x_bl.c.

#define DA9030_WLED_TRIM (   x)    ((x) & 0x7)

Definition at line 26 of file da903x_bl.c.

#define DA9034_MAX_BRIGHTNESS   0x7f

Definition at line 35 of file da903x_bl.c.

#define DA9034_WLED_BOOST_EN   (1 << 5)

Definition at line 32 of file da903x_bl.c.

#define DA9034_WLED_CONTROL1   0x3C

Definition at line 28 of file da903x_bl.c.

#define DA9034_WLED_CONTROL2   0x3D

Definition at line 29 of file da903x_bl.c.

#define DA9034_WLED_ISET (   x)    ((x) & 0x1f)

Definition at line 30 of file da903x_bl.c.

Function Documentation

MODULE_ALIAS ( "platform:da903x-backlight"  )
MODULE_AUTHOR ( "Eric Miao <[email protected]>""Mike Rapoport <[email protected]>"  )
MODULE_DESCRIPTION ( "Backlight Driver for Dialog Semiconductor DA9030/DA9034"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( da903x_backlight_driver  )