Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
backlight.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/backlight.h>
#include <linux/notifier.h>
#include <linux/ctype.h>
#include <linux/err.h>
#include <linux/fb.h>
#include <linux/slab.h>

Go to the source code of this file.


#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt


void backlight_force_update (struct backlight_device *bd, enum backlight_update_reason reason)
 EXPORT_SYMBOL (backlight_force_update)
: the name of the new object(must be the same as the name of the

backlight_device_register - create and register a new object of backlight_device class.

respective framebuffer device). : a pointer to the parent device : an optional pointer to be stored for private driver use. The methods may retrieve it by using bl_get_data(bd). : the backlight operations structure.

Creates and registers new backlight device. Returns either an ERR_PTR() or a pointer to the newly allocated device.

struct backlight_devicebacklight_device_register (const char *name, struct device *parent, void *devdata, const struct backlight_ops *ops, const struct backlight_properties *props)
 EXPORT_SYMBOL (backlight_device_register)
void backlight_device_unregister (struct backlight_device *bd)
 EXPORT_SYMBOL (backlight_device_unregister)
 postcore_initcall (backlight_class_init)
 module_exit (backlight_class_exit)
 MODULE_AUTHOR ("Jamey Hicks <[email protected]>, Andrew Zabolotny <[email protected]>")
 MODULE_DESCRIPTION ("Backlight Lowlevel Control Abstraction")

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 8 of file backlight.c.

Function Documentation

struct backlight_device* backlight_device_register ( const char name,
struct device parent,
void devdata,
const struct backlight_ops ops,
const struct backlight_properties props 

Definition at line 288 of file backlight.c.

void backlight_device_unregister ( struct backlight_device bd)

backlight_device_unregister - unregisters a backlight device object. : the backlight device object to be unregistered and freed.

Unregisters a previously registered via backlight_device_register object.

Definition at line 353 of file backlight.c.

void backlight_force_update ( struct backlight_device bd,
enum backlight_update_reason  reason 

backlight_force_update - tell the backlight subsystem that hardware state has changed : the backlight device to update

Updates the internal state of the backlight in response to a hardware event, and generate a uevent to notify userspace

Definition at line 264 of file backlight.c.

EXPORT_SYMBOL ( backlight_force_update  )
EXPORT_SYMBOL ( backlight_device_register  )
EXPORT_SYMBOL ( backlight_device_unregister  )
MODULE_AUTHOR ( "Jamey Hicks <[email protected] ,
Andrew Zabolotny< zap >"   
MODULE_DESCRIPTION ( "Backlight Lowlevel Control Abstraction"  )
module_exit ( backlight_class_exit  )
postcore_initcall ( backlight_class_init  )