Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mms114.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/i2c/mms114.h>
#include <linux/input/mt.h>
#include <linux/interrupt.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  mms114_data
 
struct  mms114_touch
 

Macros

#define MMS114_MODE_CONTROL   0x01
 
#define MMS114_OPERATION_MODE_MASK   0xE
 
#define MMS114_ACTIVE   (1 << 1)
 
#define MMS114_XY_RESOLUTION_H   0x02
 
#define MMS114_X_RESOLUTION   0x03
 
#define MMS114_Y_RESOLUTION   0x04
 
#define MMS114_CONTACT_THRESHOLD   0x05
 
#define MMS114_MOVING_THRESHOLD   0x06
 
#define MMS114_PACKET_SIZE   0x0F
 
#define MMS114_INFOMATION   0x10
 
#define MMS114_TSP_REV   0xF0
 
#define MMS114_I2C_DELAY   50
 
#define MMS114_POWERON_DELAY   200
 
#define MMS114_MAX_AREA   0xff
 
#define MMS114_MAX_TOUCH   10
 
#define MMS114_PACKET_NUM   8
 
#define MMS114_TYPE_NONE   0
 
#define MMS114_TYPE_TOUCHSCREEN   1
 
#define MMS114_TYPE_TOUCHKEY   2
 

Functions

 MODULE_DEVICE_TABLE (i2c, mms114_id)
 
 module_i2c_driver (mms114_driver)
 
 MODULE_AUTHOR ("Joonyoung Shim <[email protected]>")
 
 MODULE_DESCRIPTION ("MELFAS mms114 Touchscreen driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct mms114_touch __packed
 

Macro Definition Documentation

#define MMS114_ACTIVE   (1 << 1)

Definition at line 23 of file mms114.c.

#define MMS114_CONTACT_THRESHOLD   0x05

Definition at line 28 of file mms114.c.

#define MMS114_I2C_DELAY   50

Definition at line 37 of file mms114.c.

#define MMS114_INFOMATION   0x10

Definition at line 33 of file mms114.c.

#define MMS114_MAX_AREA   0xff

Definition at line 43 of file mms114.c.

#define MMS114_MAX_TOUCH   10

Definition at line 45 of file mms114.c.

#define MMS114_MODE_CONTROL   0x01

Definition at line 21 of file mms114.c.

#define MMS114_MOVING_THRESHOLD   0x06

Definition at line 29 of file mms114.c.

#define MMS114_OPERATION_MODE_MASK   0xE

Definition at line 22 of file mms114.c.

#define MMS114_PACKET_NUM   8

Definition at line 46 of file mms114.c.

#define MMS114_PACKET_SIZE   0x0F

Definition at line 32 of file mms114.c.

#define MMS114_POWERON_DELAY   200

Definition at line 40 of file mms114.c.

#define MMS114_TSP_REV   0xF0

Definition at line 34 of file mms114.c.

#define MMS114_TYPE_NONE   0

Definition at line 49 of file mms114.c.

#define MMS114_TYPE_TOUCHKEY   2

Definition at line 51 of file mms114.c.

#define MMS114_TYPE_TOUCHSCREEN   1

Definition at line 50 of file mms114.c.

#define MMS114_X_RESOLUTION   0x03

Definition at line 26 of file mms114.c.

#define MMS114_XY_RESOLUTION_H   0x02

Definition at line 25 of file mms114.c.

#define MMS114_Y_RESOLUTION   0x04

Definition at line 27 of file mms114.c.

Function Documentation

MODULE_AUTHOR ( "Joonyoung Shim <[email protected]>"  )
MODULE_DESCRIPTION ( "MELFAS mms114 Touchscreen driver )
MODULE_DEVICE_TABLE ( i2c  ,
mms114_id   
)
module_i2c_driver ( mms114_driver  )
MODULE_LICENSE ( "GPL"  )

Variable Documentation