Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
stmpe.c File Reference
#include <linux/gpio.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/pm.h>
#include <linux/slab.h>
#include <linux/mfd/core.h>
#include "stmpe.h"

Go to the source code of this file.

Functions

int stmpe_enable (struct stmpe *stmpe, unsigned int blocks)
 
 EXPORT_SYMBOL_GPL (stmpe_enable)
 
int stmpe_disable (struct stmpe *stmpe, unsigned int blocks)
 
 EXPORT_SYMBOL_GPL (stmpe_disable)
 
int stmpe_reg_read (struct stmpe *stmpe, u8 reg)
 
 EXPORT_SYMBOL_GPL (stmpe_reg_read)
 
int stmpe_reg_write (struct stmpe *stmpe, u8 reg, u8 val)
 
 EXPORT_SYMBOL_GPL (stmpe_reg_write)
 
int stmpe_set_bits (struct stmpe *stmpe, u8 reg, u8 mask, u8 val)
 
 EXPORT_SYMBOL_GPL (stmpe_set_bits)
 
int stmpe_block_read (struct stmpe *stmpe, u8 reg, u8 length, u8 *values)
 
 EXPORT_SYMBOL_GPL (stmpe_block_read)
 
int stmpe_block_write (struct stmpe *stmpe, u8 reg, u8 length, const u8 *values)
 
 EXPORT_SYMBOL_GPL (stmpe_block_write)
 
int stmpe_set_altfunc (struct stmpe *stmpe, u32 pins, enum stmpe_block block)
 
 EXPORT_SYMBOL_GPL (stmpe_set_altfunc)
 
int __devinit stmpe_probe (struct stmpe_client_info *ci, int partnum)
 
int stmpe_remove (struct stmpe *stmpe)
 

Function Documentation

EXPORT_SYMBOL_GPL ( stmpe_enable  )
EXPORT_SYMBOL_GPL ( stmpe_disable  )
EXPORT_SYMBOL_GPL ( stmpe_reg_read  )
EXPORT_SYMBOL_GPL ( stmpe_reg_write  )
EXPORT_SYMBOL_GPL ( stmpe_set_bits  )
EXPORT_SYMBOL_GPL ( stmpe_block_read  )
EXPORT_SYMBOL_GPL ( stmpe_block_write  )
EXPORT_SYMBOL_GPL ( stmpe_set_altfunc  )
int stmpe_block_read ( struct stmpe stmpe,
u8  reg,
u8  length,
u8 values 
)

stmpe_block_read() - read multiple STMPE registers : Device to read from : First register : Number of registers : Buffer to write to

Definition at line 195 of file stmpe.c.

int stmpe_block_write ( struct stmpe stmpe,
u8  reg,
u8  length,
const u8 values 
)

stmpe_block_write() - write multiple STMPE registers : Device to write to : First register : Number of registers : Values to write

Definition at line 214 of file stmpe.c.

int stmpe_disable ( struct stmpe stmpe,
unsigned int  blocks 
)

stmpe_disable - disable blocks on an STMPE device : Device to work on : Mask of blocks (enum stmpe_block values) to enable

Definition at line 122 of file stmpe.c.

int stmpe_enable ( struct stmpe stmpe,
unsigned int  blocks 
)

stmpe_enable - enable blocks on an STMPE device : Device to work on : Mask of blocks (enum stmpe_block values) to enable

Definition at line 105 of file stmpe.c.

int __devinit stmpe_probe ( struct stmpe_client_info ci,
int  partnum 
)

Definition at line 996 of file stmpe.c.

int stmpe_reg_read ( struct stmpe stmpe,
u8  reg 
)

stmpe_reg_read() - read a single STMPE register : Device to read from : Register to read

Definition at line 139 of file stmpe.c.

int stmpe_reg_write ( struct stmpe stmpe,
u8  reg,
u8  val 
)

stmpe_reg_write() - write a single STMPE register : Device to write to : Register to write : Value to write

Definition at line 157 of file stmpe.c.

int stmpe_remove ( struct stmpe stmpe)

Definition at line 1096 of file stmpe.c.

int stmpe_set_altfunc ( struct stmpe stmpe,
u32  pins,
enum stmpe_block  block 
)

stmpe_set_altfunc()- set the alternate function for STMPE pins : Device to configure : Bitmask of pins to affect : block to enable alternate functions for

is assumed to have a bit set for each of the bits whose alternate function is to be changed, numbered according to the GPIOXY numbers.

If the GPIO module is not enabled, this function automatically enables it in order to perform the change.

Definition at line 239 of file stmpe.c.

int stmpe_set_bits ( struct stmpe stmpe,
u8  reg,
u8  mask,
u8  val 
)

stmpe_set_bits() - set the value of a bitfield in a STMPE register : Device to write to : Register to write : Mask of bits to set : Value to set

Definition at line 176 of file stmpe.c.