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

Go to the source code of this file.

Data Structures

struct  pm860x_led
 

Macros

#define LED_PWM_MASK   (0x1F)
 
#define LED_CURRENT_MASK   (0x07 << 5)
 
#define LED_BLINK_MASK   (0x7F)
 
#define LED_ON_CONTINUOUS   (0x0F << 3)
 
#define LED1_BLINK_EN   (1 << 1)
 
#define LED2_BLINK_EN   (1 << 2)
 
#define pm860x_led_dt_init(x, y)   (-1)
 

Functions

 module_platform_driver (pm860x_led_driver)
 
 MODULE_DESCRIPTION ("LED driver for Marvell PM860x")
 
 MODULE_AUTHOR ("Haojian Zhuang <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:88pm860x-led")
 

Macro Definition Documentation

#define LED1_BLINK_EN   (1 << 1)

Definition at line 31 of file leds-88pm860x.c.

#define LED2_BLINK_EN   (1 << 2)

Definition at line 32 of file leds-88pm860x.c.

#define LED_BLINK_MASK   (0x7F)

Definition at line 27 of file leds-88pm860x.c.

#define LED_CURRENT_MASK   (0x07 << 5)

Definition at line 25 of file leds-88pm860x.c.

#define LED_ON_CONTINUOUS   (0x0F << 3)

Definition at line 29 of file leds-88pm860x.c.

#define LED_PWM_MASK   (0x1F)

Definition at line 24 of file leds-88pm860x.c.

#define pm860x_led_dt_init (   x,
  y 
)    (-1)

Definition at line 151 of file leds-88pm860x.c.

Function Documentation

MODULE_ALIAS ( "platform:88pm860x-led )
MODULE_AUTHOR ( "Haojian Zhuang <[email protected]>"  )
MODULE_DESCRIPTION ( "LED driver for Marvell PM860x"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( pm860x_led_driver  )