Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
backlight.h File Reference
#include <linux/device.h>
#include <linux/mutex.h>
#include <linux/notifier.h>

Go to the source code of this file.

Data Structures

struct  backlight_ops
 
struct  backlight_properties
 
struct  backlight_device
 
struct  generic_bl_info
 

Macros

#define BL_CORE_SUSPENDRESUME   (1 << 0)
 
#define BL_CORE_SUSPENDED   (1 << 0) /* backlight is suspended */
 
#define BL_CORE_FBBLANK   (1 << 1) /* backlight is under an fb blank event */
 
#define BL_CORE_DRIVER4   (1 << 28) /* reserved for driver specific use */
 
#define BL_CORE_DRIVER3   (1 << 29) /* reserved for driver specific use */
 
#define BL_CORE_DRIVER2   (1 << 30) /* reserved for driver specific use */
 
#define BL_CORE_DRIVER1   (1 << 31) /* reserved for driver specific use */
 
#define to_backlight_device(obj)   container_of(obj, struct backlight_device, dev)
 

Enumerations

enum  backlight_update_reason { BACKLIGHT_UPDATE_HOTKEY, BACKLIGHT_UPDATE_SYSFS }
 
enum  backlight_type { BACKLIGHT_RAW = 1, BACKLIGHT_PLATFORM, BACKLIGHT_FIRMWARE, BACKLIGHT_TYPE_MAX }
 

Functions

struct backlight_devicebacklight_device_register (const char *name, struct device *dev, void *devdata, const struct backlight_ops *ops, const struct backlight_properties *props)
 
void backlight_device_unregister (struct backlight_device *bd)
 
void backlight_force_update (struct backlight_device *bd, enum backlight_update_reason reason)
 

Macro Definition Documentation

#define BL_CORE_DRIVER1   (1 << 31) /* reserved for driver specific use */

Definition at line 83 of file backlight.h.

#define BL_CORE_DRIVER2   (1 << 30) /* reserved for driver specific use */

Definition at line 82 of file backlight.h.

#define BL_CORE_DRIVER3   (1 << 29) /* reserved for driver specific use */

Definition at line 81 of file backlight.h.

#define BL_CORE_DRIVER4   (1 << 28) /* reserved for driver specific use */

Definition at line 80 of file backlight.h.

#define BL_CORE_FBBLANK   (1 << 1) /* backlight is under an fb blank event */

Definition at line 79 of file backlight.h.

#define BL_CORE_SUSPENDED   (1 << 0) /* backlight is suspended */

Definition at line 78 of file backlight.h.

#define BL_CORE_SUSPENDRESUME   (1 << 0)

Definition at line 48 of file backlight.h.

#define to_backlight_device (   obj)    container_of(obj, struct backlight_device, dev)

Definition at line 121 of file backlight.h.

Enumeration Type Documentation

Enumerator:
BACKLIGHT_RAW 
BACKLIGHT_PLATFORM 
BACKLIGHT_FIRMWARE 
BACKLIGHT_TYPE_MAX 

Definition at line 35 of file backlight.h.

Enumerator:
BACKLIGHT_UPDATE_HOTKEY 
BACKLIGHT_UPDATE_SYSFS 

Definition at line 30 of file backlight.h.

Function Documentation

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

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.