Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
leds-pca955x.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/leds.h>
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/workqueue.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  pca955x_chipdef
 
struct  pca955x
 
struct  pca955x_led
 

Macros

#define PCA955X_LS_LED_ON   0x0 /* Output LOW */
 
#define PCA955X_LS_LED_OFF   0x1 /* Output HI-Z */
 
#define PCA955X_LS_BLINK0   0x2 /* Blink at PWM0 rate */
 
#define PCA955X_LS_BLINK1   0x3 /* Blink at PWM1 rate */
 

Enumerations

enum  pca955x_type { pca9550, pca9551, pca9552, pca9553 }
 

Functions

 MODULE_DEVICE_TABLE (i2c, pca955x_id)
 
 module_i2c_driver (pca955x_driver)
 
 MODULE_AUTHOR ("Nate Case <[email protected]>")
 
 MODULE_DESCRIPTION ("PCA955x LED driver")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define PCA955X_LS_BLINK0   0x2 /* Blink at PWM0 rate */

Definition at line 56 of file leds-pca955x.c.

#define PCA955X_LS_BLINK1   0x3 /* Blink at PWM1 rate */

Definition at line 57 of file leds-pca955x.c.

#define PCA955X_LS_LED_OFF   0x1 /* Output HI-Z */

Definition at line 55 of file leds-pca955x.c.

#define PCA955X_LS_LED_ON   0x0 /* Output LOW */

Definition at line 54 of file leds-pca955x.c.

Enumeration Type Documentation

Enumerator:
pca9550 
pca9551 
pca9552 
pca9553 

Definition at line 59 of file leds-pca955x.c.

Function Documentation

MODULE_AUTHOR ( "Nate Case <[email protected]>"  )
MODULE_DESCRIPTION ( "PCA955x LED driver )
MODULE_DEVICE_TABLE ( i2c  ,
pca955x_id   
)
module_i2c_driver ( pca955x_driver  )
MODULE_LICENSE ( "GPL v2 )