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

Go to the source code of this file.

Data Structures

struct  da903x_led
 

Macros

#define DA9030_LED1_CONTROL   0x20
 
#define DA9030_LED2_CONTROL   0x21
 
#define DA9030_LED3_CONTROL   0x22
 
#define DA9030_LED4_CONTROL   0x23
 
#define DA9030_LEDPC_CONTROL   0x24
 
#define DA9030_MISC_CONTROL_A   0x26 /* Vibrator Control */
 
#define DA9034_LED1_CONTROL   0x35
 
#define DA9034_LED2_CONTROL   0x36
 
#define DA9034_VIBRA   0x40
 
#define DA9030_LED_OFFSET(id)   ((id) - DA9030_ID_LED_1)
 
#define DA9034_LED_OFFSET(id)   ((id) - DA9034_ID_LED_1)
 

Functions

 module_platform_driver (da903x_led_driver)
 
 MODULE_DESCRIPTION ("LEDs driver for Dialog Semiconductor DA9030/DA9034")
 
 MODULE_AUTHOR ("Eric Miao <[email protected]>""Mike Rapoport <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:da903x-led")
 

Macro Definition Documentation

#define DA9030_LED1_CONTROL   0x20

Definition at line 24 of file leds-da903x.c.

#define DA9030_LED2_CONTROL   0x21

Definition at line 25 of file leds-da903x.c.

#define DA9030_LED3_CONTROL   0x22

Definition at line 26 of file leds-da903x.c.

#define DA9030_LED4_CONTROL   0x23

Definition at line 27 of file leds-da903x.c.

#define DA9030_LED_OFFSET (   id)    ((id) - DA9030_ID_LED_1)

Definition at line 44 of file leds-da903x.c.

#define DA9030_LEDPC_CONTROL   0x24

Definition at line 28 of file leds-da903x.c.

#define DA9030_MISC_CONTROL_A   0x26 /* Vibrator Control */

Definition at line 29 of file leds-da903x.c.

#define DA9034_LED1_CONTROL   0x35

Definition at line 31 of file leds-da903x.c.

#define DA9034_LED2_CONTROL   0x36

Definition at line 32 of file leds-da903x.c.

#define DA9034_LED_OFFSET (   id)    ((id) - DA9034_ID_LED_1)

Definition at line 45 of file leds-da903x.c.

#define DA9034_VIBRA   0x40

Definition at line 33 of file leds-da903x.c.

Function Documentation

MODULE_ALIAS ( "platform:da903x-led )
MODULE_AUTHOR ( "Eric Miao <[email protected]>""Mike Rapoport <[email protected]>"  )
MODULE_DESCRIPTION ( "LEDs driver for Dialog Semiconductor DA9030/DA9034"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( da903x_led_driver  )