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

Go to the source code of this file.

Data Structures

struct  rc5t583_regulator_info
 
struct  rc5t583_regulator
 

Macros

#define RC5T583_REG(_id, _en_reg, _en_bit, _disc_reg, _disc_bit, _vout_mask, _min_mv, _max_mv, _step_uV, _enable_mv)
 

Functions

 subsys_initcall (rc5t583_regulator_init)
 
 module_exit (rc5t583_regulator_exit)
 
 MODULE_AUTHOR ("Laxman Dewangan <[email protected]>")
 
 MODULE_DESCRIPTION ("RC5T583 regulator driver")
 
 MODULE_ALIAS ("platform:rc5t583-regulator")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define RC5T583_REG (   _id,
  _en_reg,
  _en_bit,
  _disc_reg,
  _disc_bit,
  _vout_mask,
  _min_mv,
  _max_mv,
  _step_uV,
  _enable_mv 
)
Value:
{ \
.reg_disc_reg = RC5T583_REG_##_disc_reg, \
.disc_bit = _disc_bit, \
.deepsleep_reg = RC5T583_REG_##_id##DAC_DS, \
.enable_uv_per_us = _enable_mv * 1000, \
.deepsleep_id = RC5T583_DS_##_id, \
.desc = { \
.name = "rc5t583-regulator-"#_id, \
.id = RC5T583_REGULATOR_##_id, \
.n_voltages = (_max_mv - _min_mv) * 1000 / _step_uV + 1, \
.ops = &rc5t583_ops, \
.vsel_reg = RC5T583_REG_##_id##DAC, \
.vsel_mask = _vout_mask, \
.enable_reg = RC5T583_REG_##_en_reg, \
.enable_mask = BIT(_en_bit), \
.min_uV = _min_mv * 1000, \
.uV_step = _step_uV, \
.ramp_delay = 40 * 1000, \
}, \
}

Definition at line 80 of file rc5t583-regulator.c.

Function Documentation

MODULE_ALIAS ( "platform:rc5t583-regulator )
MODULE_AUTHOR ( "Laxman Dewangan <[email protected]>"  )
MODULE_DESCRIPTION ( "RC5T583 regulator driver )
module_exit ( rc5t583_regulator_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( rc5t583_regulator_init  )