Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vreg.c File Reference
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/debugfs.h>
#include <linux/module.h>
#include <linux/string.h>
#include <mach/vreg.h>
#include "proc_comm.h"

Go to the source code of this file.

Data Structures

struct  vreg
 

Macros

#define VREG(_name, _id, _status, _refcnt)   { .name = _name, .id = _id, .status = _status, .refcnt = _refcnt }
 

Functions

struct vregvreg_get (struct device *dev, const char *id)
 
void vreg_put (struct vreg *vreg)
 
int vreg_enable (struct vreg *vreg)
 
int vreg_disable (struct vreg *vreg)
 
int vreg_set_level (struct vreg *vreg, unsigned mv)
 

Macro Definition Documentation

#define VREG (   _name,
  _id,
  _status,
  _refcnt 
)    { .name = _name, .id = _id, .status = _status, .refcnt = _refcnt }

Definition at line 35 of file vreg.c.

Function Documentation

int vreg_disable ( struct vreg vreg)

Definition at line 117 of file vreg.c.

int vreg_enable ( struct vreg vreg)

Definition at line 103 of file vreg.c.

struct vreg* vreg_get ( struct device dev,
const char id 
)
read

Definition at line 89 of file vreg.c.

void vreg_put ( struct vreg vreg)

Definition at line 99 of file vreg.c.

int vreg_set_level ( struct vreg vreg,
unsigned  mv 
)

Definition at line 134 of file vreg.c.