Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
lcd.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/lcd.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.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

: the name of the new object(must be the same as the name of the

lcd_device_register - register a new object of lcd_device class.

respective framebuffer device). : an optional pointer to be stored in the device. The methods may retrieve it by using lcd_get_data(ld). : the lcd operations structure.

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

struct lcd_devicelcd_device_register (const char *name, struct device *parent, void *devdata, struct lcd_ops *ops)
 
 EXPORT_SYMBOL (lcd_device_register)
 
void lcd_device_unregister (struct lcd_device *ld)
 
 EXPORT_SYMBOL (lcd_device_unregister)
 
 postcore_initcall (lcd_class_init)
 
 module_exit (lcd_class_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jamey Hicks <jamey.h[email protected]>, Andrew Zabolotny <[email protected]>")
 
 MODULE_DESCRIPTION ("LCD Lowlevel Control Abstraction")
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 8 of file lcd.c.

Function Documentation

EXPORT_SYMBOL ( lcd_device_register  )
EXPORT_SYMBOL ( lcd_device_unregister  )
struct lcd_device* lcd_device_register ( const char name,
struct device parent,
void devdata,
struct lcd_ops ops 
)
read

Definition at line 200 of file lcd.c.

void lcd_device_unregister ( struct lcd_device ld)

lcd_device_unregister - unregisters a object of lcd_device class. : the lcd device object to be unregistered and freed.

Unregisters a previously registered via lcd_device_register object.

Definition at line 245 of file lcd.c.

MODULE_AUTHOR ( "Jamey Hicks <[email protected] ,
Andrew Zabolotny< zap @homelink.ru >"   
)
MODULE_DESCRIPTION ( "LCD Lowlevel Control Abstraction"  )
module_exit ( lcd_class_exit  )
MODULE_LICENSE ( "GPL"  )
postcore_initcall ( lcd_class_init  )