Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
tps65217.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/regmap.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/mfd/core.h>
#include <linux/mfd/tps65217.h>

Go to the source code of this file.

Functions

int tps65217_reg_read (struct tps65217 *tps, unsigned int reg, unsigned int *val)
 
 EXPORT_SYMBOL_GPL (tps65217_reg_read)
 
int tps65217_reg_write (struct tps65217 *tps, unsigned int reg, unsigned int val, unsigned int level)
 
 EXPORT_SYMBOL_GPL (tps65217_reg_write)
 
int tps65217_set_bits (struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level)
 
 EXPORT_SYMBOL_GPL (tps65217_set_bits)
 
int tps65217_clear_bits (struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int level)
 
 EXPORT_SYMBOL_GPL (tps65217_clear_bits)
 
 MODULE_DEVICE_TABLE (i2c, tps65217_id_table)
 
 subsys_initcall (tps65217_init)
 
 module_exit (tps65217_exit)
 
 MODULE_AUTHOR ("AnilKumar Ch <[email protected]>")
 
 MODULE_DESCRIPTION ("TPS65217 chip family multi-function driver")
 
 MODULE_LICENSE ("GPL v2")
 

Function Documentation

EXPORT_SYMBOL_GPL ( tps65217_reg_read  )
EXPORT_SYMBOL_GPL ( tps65217_reg_write  )
EXPORT_SYMBOL_GPL ( tps65217_set_bits  )
EXPORT_SYMBOL_GPL ( tps65217_clear_bits  )
MODULE_AUTHOR ( "AnilKumar Ch <[email protected]>"  )
MODULE_DESCRIPTION ( "TPS65217 chip family multi-function driver )
MODULE_DEVICE_TABLE ( i2c  ,
tps65217_id_table   
)
module_exit ( tps65217_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( tps65217_init  )
int tps65217_clear_bits ( struct tps65217 tps,
unsigned int  reg,
unsigned int  mask,
unsigned int  level 
)

Definition at line 139 of file tps65217.c.

int tps65217_reg_read ( struct tps65217 tps,
unsigned int  reg,
unsigned int val 
)

tps65217_reg_read: Read a single tps65217 register.

: Device to read from. : Register to read. : Contians the value

Definition at line 49 of file tps65217.c.

int tps65217_reg_write ( struct tps65217 tps,
unsigned int  reg,
unsigned int  val,
unsigned int  level 
)

tps65217_reg_write: Write a single tps65217 register.

: Device to write to. : Register to write to. : Value to write. : Password protected level

Definition at line 64 of file tps65217.c.

int tps65217_set_bits ( struct tps65217 tps,
unsigned int  reg,
unsigned int  mask,
unsigned int  val,
unsigned int  level 
)

Definition at line 132 of file tps65217.c.