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

Go to the source code of this file.

Data Structures

struct  mc13783_ts_priv
 

Macros

#define MC13783_TS_NAME   "mc13783-ts"
 
#define DEFAULT_SAMPLE_TOLERANCE   300
 
#define sort3(a0, a1, a2)
 

Functions

 module_param (sample_tolerance, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (sample_tolerance,"If the minimal and maximal value read out for one axis (out ""of three) differ by this value (default: "__stringify(DEFAULT_SAMPLE_TOLERANCE)") or more, the reading ""is supposed to be wrong and is discarded. Set to 0 to ""disable this check.")
 
 module_init (mc13783_ts_init)
 
 module_exit (mc13783_ts_exit)
 
 MODULE_DESCRIPTION ("MC13783 input touchscreen driver")
 
 MODULE_AUTHOR ("Sascha Hauer <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:"MC13783_TS_NAME)
 

Macro Definition Documentation

#define DEFAULT_SAMPLE_TOLERANCE   300

Definition at line 25 of file mc13783_ts.c.

#define MC13783_TS_NAME   "mc13783-ts"

Definition at line 23 of file mc13783_ts.c.

#define sort3 (   a0,
  a1,
  a2 
)
Value:
({ \
if (a0 > a1) \
swap(a0, a1); \
if (a1 > a2) \
swap(a1, a2); \
if (a0 > a1) \
swap(a0, a1); \
})

Definition at line 62 of file mc13783_ts.c.

Function Documentation

MODULE_ALIAS ( "platform:"  MC13783_TS_NAME)
MODULE_AUTHOR ( "Sascha Hauer <[email protected]>"  )
MODULE_DESCRIPTION ( "MC13783 input touchscreen driver )
module_exit ( mc13783_ts_exit  )
module_init ( mc13783_ts_init  )
MODULE_LICENSE ( "GPL v2 )
module_param ( sample_tolerance  ,
uint  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( sample_tolerance  ,
"If the minimal and maximal value read out for one axis (out ""of three) differ by this value (default: "__stringify(DEFAULT_SAMPLE_TOLERANCE)") or  more,
the reading""is supposed to be wrong and is discarded.Set to 0 to""disable this check."   
)