Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
88pm80x_onkey.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/input.h>
#include <linux/mfd/88pm80x.h>
#include <linux/regmap.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  pm80x_onkey_info
 

Macros

#define PM800_LONG_ONKEY_EN   (1 << 0)
 
#define PM800_LONG_KEY_DELAY   (8) /* 1 .. 16 seconds */
 
#define PM800_LONKEY_PRESS_TIME   ((PM800_LONG_KEY_DELAY-1) << 4)
 
#define PM800_LONKEY_PRESS_TIME_MASK   (0xF0)
 
#define PM800_SW_PDOWN   (1 << 5)
 

Functions

 module_platform_driver (pm80x_onkey_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Marvell 88PM80x ONKEY driver")
 
 MODULE_AUTHOR ("Qiao Zhou <[email protected]>")
 
 MODULE_ALIAS ("platform:88pm80x-onkey")
 

Macro Definition Documentation

#define PM800_LONG_KEY_DELAY   (8) /* 1 .. 16 seconds */

Definition at line 30 of file 88pm80x_onkey.c.

#define PM800_LONG_ONKEY_EN   (1 << 0)

Definition at line 29 of file 88pm80x_onkey.c.

#define PM800_LONKEY_PRESS_TIME   ((PM800_LONG_KEY_DELAY-1) << 4)

Definition at line 31 of file 88pm80x_onkey.c.

#define PM800_LONKEY_PRESS_TIME_MASK   (0xF0)

Definition at line 32 of file 88pm80x_onkey.c.

#define PM800_SW_PDOWN   (1 << 5)

Definition at line 33 of file 88pm80x_onkey.c.

Function Documentation

MODULE_ALIAS ( "platform:88pm80x-onkey"  )
MODULE_AUTHOR ( "Qiao Zhou <[email protected]>"  )
MODULE_DESCRIPTION ( "Marvell 88PM80x ONKEY driver"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( pm80x_onkey_driver  )