Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lp8788.c File Reference
#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/mfd/core.h>
#include <linux/mfd/lp8788.h>
#include <linux/module.h>
#include <linux/slab.h>

Go to the source code of this file.

Macros

#define MAX_LP8788_REGISTERS   0xA2
 
#define MFD_DEV_SIMPLE(_name)
 
#define MFD_DEV_WITH_ID(_name, _id)
 
#define MFD_DEV_WITH_RESOURCE(_name, _resource, num_resource)
 

Functions

int lp8788_read_byte (struct lp8788 *lp, u8 reg, u8 *data)
 
 EXPORT_SYMBOL_GPL (lp8788_read_byte)
 
int lp8788_read_multi_bytes (struct lp8788 *lp, u8 reg, u8 *data, size_t count)
 
 EXPORT_SYMBOL_GPL (lp8788_read_multi_bytes)
 
int lp8788_write_byte (struct lp8788 *lp, u8 reg, u8 data)
 
 EXPORT_SYMBOL_GPL (lp8788_write_byte)
 
int lp8788_update_bits (struct lp8788 *lp, u8 reg, u8 mask, u8 data)
 
 EXPORT_SYMBOL_GPL (lp8788_update_bits)
 
 MODULE_DEVICE_TABLE (i2c, lp8788_ids)
 
 subsys_initcall (lp8788_init)
 
 module_exit (lp8788_exit)
 
 MODULE_DESCRIPTION ("TI LP8788 MFD Driver")
 
 MODULE_AUTHOR ("Milo Kim")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX_LP8788_REGISTERS   0xA2

Definition at line 21 of file lp8788.c.

#define MFD_DEV_SIMPLE (   _name)
Value:
{ \
.name = LP8788_DEV_##_name, \
}

Definition at line 23 of file lp8788.c.

#define MFD_DEV_WITH_ID (   _name,
  _id 
)
Value:
{ \
.name = LP8788_DEV_##_name, \
.id = _id, \
}

Definition at line 28 of file lp8788.c.

#define MFD_DEV_WITH_RESOURCE (   _name,
  _resource,
  num_resource 
)
Value:
{ \
.name = LP8788_DEV_##_name, \
.resources = _resource, \
.num_resources = num_resource, \
}

Definition at line 34 of file lp8788.c.

Function Documentation

EXPORT_SYMBOL_GPL ( lp8788_read_byte  )
EXPORT_SYMBOL_GPL ( lp8788_read_multi_bytes  )
EXPORT_SYMBOL_GPL ( lp8788_write_byte  )
EXPORT_SYMBOL_GPL ( lp8788_update_bits  )
int lp8788_read_byte ( struct lp8788 lp,
u8  reg,
u8 data 
)

Definition at line 126 of file lp8788.c.

int lp8788_read_multi_bytes ( struct lp8788 lp,
u8  reg,
u8 data,
size_t  count 
)

Definition at line 142 of file lp8788.c.

int lp8788_update_bits ( struct lp8788 lp,
u8  reg,
u8  mask,
u8  data 
)

Definition at line 154 of file lp8788.c.

int lp8788_write_byte ( struct lp8788 lp,
u8  reg,
u8  data 
)

Definition at line 148 of file lp8788.c.

MODULE_AUTHOR ( "Milo Kim"  )
MODULE_DESCRIPTION ( "TI LP8788 MFD Driver"  )
MODULE_DEVICE_TABLE ( i2c  ,
lp8788_ids   
)
module_exit ( lp8788_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( lp8788_init  )