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

Go to the source code of this file.

Macros

#define LEDFLAGS(bits, shift)   ((bits << 8) | (shift << 8))
 
#define LEDBITS(id, shift, bits)
 

Functions

 module_init (led_init)
 
 MODULE_AUTHOR ("Chris Dearman <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("LED probe driver for SEAD-3")
 

Variables

struct led_info led_data_info []
 

Macro Definition Documentation

#define LEDBITS (   id,
  shift,
  bits 
)
Value:
.name = id #shift, \
.flags = LEDFLAGS(bits, shift)

Definition at line 15 of file sead3-leds.c.

#define LEDFLAGS (   bits,
  shift 
)    ((bits << 8) | (shift << 8))

Definition at line 12 of file sead3-leds.c.

Function Documentation

MODULE_AUTHOR ( "Chris Dearman <[email protected]>"  )
MODULE_DESCRIPTION ( "LED probe driver for SEAD-3"  )
module_init ( led_init  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation

struct led_info led_data_info[]
Initial value:
= {
{ LEDBITS("bit", 0, 1) },
{ LEDBITS("bit", 1, 1) },
{ LEDBITS("bit", 2, 1) },
{ LEDBITS("bit", 3, 1) },
{ LEDBITS("bit", 4, 1) },
{ LEDBITS("bit", 5, 1) },
{ LEDBITS("bit", 6, 1) },
{ LEDBITS("bit", 7, 1) },
{ LEDBITS("all", 0, 8) },
}

Definition at line 19 of file sead3-leds.c.