Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pm8xxx-vibrator.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/platform_device.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <linux/mfd/pm8xxx/core.h>

Go to the source code of this file.

Data Structures

struct  pm8xxx_vib
 

Macros

#define VIB_DRV   0x4A
 
#define VIB_DRV_SEL_MASK   0xf8
 
#define VIB_DRV_SEL_SHIFT   0x03
 
#define VIB_DRV_EN_MANUAL_MASK   0xfc
 
#define VIB_MAX_LEVEL_mV   (3100)
 
#define VIB_MIN_LEVEL_mV   (1200)
 
#define VIB_MAX_LEVELS   (VIB_MAX_LEVEL_mV - VIB_MIN_LEVEL_mV)
 
#define MAX_FF_SPEED   0xff
 

Functions

 module_platform_driver (pm8xxx_vib_driver)
 
 MODULE_ALIAS ("platform:pm8xxx_vib")
 
 MODULE_DESCRIPTION ("PMIC8xxx vibrator driver based on ff-memless framework")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Amy Maloche <[email protected]>")
 

Macro Definition Documentation

#define MAX_FF_SPEED   0xff

Definition at line 32 of file pm8xxx-vibrator.c.

#define VIB_DRV   0x4A

Definition at line 22 of file pm8xxx-vibrator.c.

#define VIB_DRV_EN_MANUAL_MASK   0xfc

Definition at line 26 of file pm8xxx-vibrator.c.

#define VIB_DRV_SEL_MASK   0xf8

Definition at line 24 of file pm8xxx-vibrator.c.

#define VIB_DRV_SEL_SHIFT   0x03

Definition at line 25 of file pm8xxx-vibrator.c.

#define VIB_MAX_LEVEL_mV   (3100)

Definition at line 28 of file pm8xxx-vibrator.c.

#define VIB_MAX_LEVELS   (VIB_MAX_LEVEL_mV - VIB_MIN_LEVEL_mV)

Definition at line 30 of file pm8xxx-vibrator.c.

#define VIB_MIN_LEVEL_mV   (1200)

Definition at line 29 of file pm8xxx-vibrator.c.

Function Documentation

MODULE_ALIAS ( "platform:pm8xxx_vib"  )
MODULE_AUTHOR ( "Amy Maloche <[email protected]>"  )
MODULE_DESCRIPTION ( "PMIC8xxx vibrator driver based on ff-memless framework"  )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( pm8xxx_vib_driver  )