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

Go to the source code of this file.

Data Structures

struct  max8997_data
 
struct  voltage_map_desc
 

Macros

#define MAX8997_VOLTAGE_REGULATOR(_name, _ops)
 
#define MAX8997_CURRENT_REGULATOR(_name, _ops)
 

Functions

 MODULE_DEVICE_TABLE (platform, max8997_pmic_id)
 
 subsys_initcall (max8997_pmic_init)
 
 module_exit (max8997_pmic_cleanup)
 
 MODULE_DESCRIPTION ("MAXIM 8997/8966 Regulator Driver")
 
 MODULE_AUTHOR ("MyungJoo Ham <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX8997_CURRENT_REGULATOR (   _name,
  _ops 
)
Value:
{\
.name = #_name, \
.id = MAX8997_##_name, \
.ops = &_ops, \
.type = REGULATOR_CURRENT, \
.owner = THIS_MODULE, \
}

Definition at line 890 of file max8997.c.

#define MAX8997_VOLTAGE_REGULATOR (   _name,
  _ops 
)
Value:
{\
.name = #_name, \
.id = MAX8997_##_name, \
.ops = &_ops, \
.type = REGULATOR_VOLTAGE, \
.owner = THIS_MODULE, \
}

Definition at line 882 of file max8997.c.

Function Documentation

MODULE_AUTHOR ( "MyungJoo Ham <[email protected]>"  )
MODULE_DESCRIPTION ( "MAXIM 8997/8966 Regulator Driver"  )
MODULE_DEVICE_TABLE ( platform  ,
max8997_pmic_id   
)
module_exit ( max8997_pmic_cleanup  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max8997_pmic_init  )