Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
led-class.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/device.h>
#include <linux/timer.h>
#include <linux/err.h>
#include <linux/ctype.h>
#include <linux/leds.h>
#include "leds.h"

Go to the source code of this file.

Functions

void led_classdev_suspend (struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_classdev_suspend)
 
void led_classdev_resume (struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_classdev_resume)
 
int led_classdev_register (struct device *parent, struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_classdev_register)
 
void led_classdev_unregister (struct led_classdev *led_cdev)
 
 EXPORT_SYMBOL_GPL (led_classdev_unregister)
 
 subsys_initcall (leds_init)
 
 module_exit (leds_exit)
 
 MODULE_AUTHOR ("John Lenz, Richard Purdie")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("LED Class Interface")
 

Function Documentation

EXPORT_SYMBOL_GPL ( led_classdev_suspend  )
EXPORT_SYMBOL_GPL ( led_classdev_resume  )
EXPORT_SYMBOL_GPL ( led_classdev_register  )
EXPORT_SYMBOL_GPL ( led_classdev_unregister  )
int led_classdev_register ( struct device parent,
struct led_classdev led_cdev 
)

led_classdev_register - register a new object of led_classdev class. : The device to register. : the led_classdev structure for this device.

Definition at line 184 of file led-class.c.

void led_classdev_resume ( struct led_classdev led_cdev)

led_classdev_resume - resume an led_classdev. : the led_classdev to resume.

Definition at line 152 of file led-class.c.

void led_classdev_suspend ( struct led_classdev led_cdev)

led_classdev_suspend - suspend an led_classdev. : the led_classdev to suspend.

Definition at line 141 of file led-class.c.

void led_classdev_unregister ( struct led_classdev led_cdev)

led_classdev_unregister - unregisters a object of led_properties class. : the led device to unregister

Unregisters a previously registered via led_classdev_register object.

Definition at line 227 of file led-class.c.

MODULE_AUTHOR ( "John  Lenz,
Richard Purdie"   
)
MODULE_DESCRIPTION ( "LED Class Interface )
module_exit ( leds_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( leds_init  )