Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tps65217-regulator.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/regulator/of_regulator.h>
#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>
#include <linux/mfd/tps65217.h>

Go to the source code of this file.

Macros

#define TPS65217_REGULATOR(_name, _id, _ops, _n, _vr, _vm, _em, _t)
 
#define TPS65217_INFO(_nm, _min, _max, _f1, _f2)
 

Functions

 subsys_initcall (tps65217_regulator_init)
 
 module_exit (tps65217_regulator_exit)
 
 MODULE_AUTHOR ("AnilKumar Ch <[email protected]>")
 
 MODULE_DESCRIPTION ("TPS65217 voltage regulator driver")
 
 MODULE_ALIAS ("platform:tps65217-pmic")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define TPS65217_INFO (   _nm,
  _min,
  _max,
  _f1,
  _f2 
)
Value:
{ \
.name = _nm, \
.min_uV = _min, \
.max_uV = _max, \
.vsel_to_uv = _f1, \
.uv_to_vsel = _f2, \
}

Definition at line 45 of file tps65217-regulator.c.

#define TPS65217_REGULATOR (   _name,
  _id,
  _ops,
  _n,
  _vr,
  _vm,
  _em,
  _t 
)
Value:
{ \
.name = _name, \
.id = _id, \
.ops = &_ops, \
.n_voltages = _n, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
.vsel_reg = _vr, \
.vsel_mask = _vm, \
.enable_reg = TPS65217_REG_ENABLE, \
.enable_mask = _em, \
.volt_table = _t, \
} \

Definition at line 30 of file tps65217-regulator.c.

Function Documentation

MODULE_ALIAS ( "platform:tps65217-pmic"  )
MODULE_AUTHOR ( "AnilKumar Ch <[email protected]>"  )
MODULE_DESCRIPTION ( "TPS65217 voltage regulator driver )
module_exit ( tps65217_regulator_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( tps65217_regulator_init  )