Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
max8998.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include <linux/mutex.h>
#include <linux/mfd/core.h>
#include <linux/mfd/max8998.h>
#include <linux/mfd/max8998-private.h>

Go to the source code of this file.

Data Structures

struct  max8998_reg_dump
 

Macros

#define RTC_I2C_ADDR   (0x0c >> 1)
 
#define SAVE_ITEM(x)   { .addr = (x), .val = 0x0, }
 

Functions

int max8998_read_reg (struct i2c_client *i2c, u8 reg, u8 *dest)
 
 EXPORT_SYMBOL (max8998_read_reg)
 
int max8998_bulk_read (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL (max8998_bulk_read)
 
int max8998_write_reg (struct i2c_client *i2c, u8 reg, u8 value)
 
 EXPORT_SYMBOL (max8998_write_reg)
 
int max8998_bulk_write (struct i2c_client *i2c, u8 reg, int count, u8 *buf)
 
 EXPORT_SYMBOL (max8998_bulk_write)
 
int max8998_update_reg (struct i2c_client *i2c, u8 reg, u8 val, u8 mask)
 
 EXPORT_SYMBOL (max8998_update_reg)
 
 MODULE_DEVICE_TABLE (i2c, max8998_i2c_id)
 
 subsys_initcall (max8998_i2c_init)
 
 module_exit (max8998_i2c_exit)
 
 MODULE_DESCRIPTION ("MAXIM 8998 multi-function core driver")
 
 MODULE_AUTHOR ("Kyungmin Park <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define RTC_I2C_ADDR   (0x0c >> 1)

Definition at line 35 of file max8998.c.

#define SAVE_ITEM (   x)    { .addr = (x), .val = 0x0, }

Definition at line 239 of file max8998.c.

Function Documentation

EXPORT_SYMBOL ( max8998_read_reg  )
EXPORT_SYMBOL ( max8998_bulk_read  )
EXPORT_SYMBOL ( max8998_write_reg  )
EXPORT_SYMBOL ( max8998_bulk_write  )
EXPORT_SYMBOL ( max8998_update_reg  )
int max8998_bulk_read ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 72 of file max8998.c.

int max8998_bulk_write ( struct i2c_client i2c,
u8  reg,
int  count,
u8 buf 
)

Definition at line 99 of file max8998.c.

int max8998_read_reg ( struct i2c_client i2c,
u8  reg,
u8 dest 
)

Definition at line 55 of file max8998.c.

int max8998_update_reg ( struct i2c_client i2c,
u8  reg,
u8  val,
u8  mask 
)

Definition at line 114 of file max8998.c.

int max8998_write_reg ( struct i2c_client i2c,
u8  reg,
u8  value 
)

Definition at line 87 of file max8998.c.

MODULE_AUTHOR ( "Kyungmin Park <[email protected]>"  )
MODULE_DESCRIPTION ( "MAXIM 8998 multi-function core driver )
MODULE_DEVICE_TABLE ( i2c  ,
max8998_i2c_id   
)
module_exit ( max8998_i2c_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max8998_i2c_init  )