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

Go to the source code of this file.

Macros

#define to_lm_device(d)   container_of(d, struct lm_device, dev)
 
#define to_lm_driver(d)   container_of(d, struct lm_driver, drv)
 

Functions

 postcore_initcall (lm_init)
 
int lm_driver_register (struct lm_driver *drv)
 
void lm_driver_unregister (struct lm_driver *drv)
 
int lm_device_register (struct lm_device *dev)
 
 EXPORT_SYMBOL (lm_driver_register)
 
 EXPORT_SYMBOL (lm_driver_unregister)
 

Macro Definition Documentation

#define to_lm_device (   d)    container_of(d, struct lm_device, dev)

Definition at line 17 of file lm.c.

#define to_lm_driver (   d)    container_of(d, struct lm_driver, drv)

Definition at line 18 of file lm.c.

Function Documentation

EXPORT_SYMBOL ( lm_driver_register  )
EXPORT_SYMBOL ( lm_driver_unregister  )
int lm_device_register ( struct lm_device dev)

Definition at line 77 of file lm.c.

int lm_driver_register ( struct lm_driver drv)

Definition at line 59 of file lm.c.

void lm_driver_unregister ( struct lm_driver drv)

Definition at line 65 of file lm.c.

postcore_initcall ( lm_init  )