Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
regmap-i2c.c File Reference
#include <linux/regmap.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/init.h>

Go to the source code of this file.

Functions

struct regmapregmap_init_i2c (struct i2c_client *i2c, const struct regmap_config *config)
 
 EXPORT_SYMBOL_GPL (regmap_init_i2c)
 
struct regmapdevm_regmap_init_i2c (struct i2c_client *i2c, const struct regmap_config *config)
 
 EXPORT_SYMBOL_GPL (devm_regmap_init_i2c)
 
 MODULE_LICENSE ("GPL")
 

Function Documentation

struct regmap* devm_regmap_init_i2c ( struct i2c_client i2c,
const struct regmap_config *  config 
)
read

devm_regmap_init_i2c(): Initialise managed register map

: Device that will be interacted with : Configuration for register map

The return value will be an ERR_PTR() on error or a valid pointer to a struct regmap. The regmap will be automatically freed by the device management code.

Definition at line 127 of file regmap-i2c.c.

EXPORT_SYMBOL_GPL ( regmap_init_i2c  )
EXPORT_SYMBOL_GPL ( devm_regmap_init_i2c  )
MODULE_LICENSE ( "GPL"  )
struct regmap* regmap_init_i2c ( struct i2c_client i2c,
const struct regmap_config *  config 
)
read

regmap_init_i2c(): Initialise register map

: Device that will be interacted with : Configuration for register map

The return value will be an ERR_PTR() on error or a valid pointer to a struct regmap.

Definition at line 110 of file regmap-i2c.c.