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

Go to the source code of this file.

Macros

#define RTC_I2C_ADDR   0x68
 
#define ADC_I2C_ADDR   0x47
 

Functions

int max8925_reg_read (struct i2c_client *i2c, int reg)
 
 EXPORT_SYMBOL (max8925_reg_read)
 
int max8925_reg_write (struct i2c_client *i2c, int reg, unsigned char data)
 
 EXPORT_SYMBOL (max8925_reg_write)
 
int max8925_bulk_read (struct i2c_client *i2c, int reg, int count, unsigned char *buf)
 
 EXPORT_SYMBOL (max8925_bulk_read)
 
int max8925_bulk_write (struct i2c_client *i2c, int reg, int count, unsigned char *buf)
 
 EXPORT_SYMBOL (max8925_bulk_write)
 
int max8925_set_bits (struct i2c_client *i2c, int reg, unsigned char mask, unsigned char data)
 
 EXPORT_SYMBOL (max8925_set_bits)
 
 MODULE_DEVICE_TABLE (i2c, max8925_id_table)
 
 subsys_initcall (max8925_i2c_init)
 
 module_exit (max8925_i2c_exit)
 
 MODULE_DESCRIPTION ("I2C Driver for Maxim 8925")
 
 MODULE_AUTHOR ("Haojian Zhuang <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADC_I2C_ADDR   0x47

Definition at line 19 of file max8925-i2c.c.

#define RTC_I2C_ADDR   0x68

Definition at line 18 of file max8925-i2c.c.

Function Documentation

EXPORT_SYMBOL ( max8925_reg_read  )
EXPORT_SYMBOL ( max8925_reg_write  )
EXPORT_SYMBOL ( max8925_bulk_read  )
EXPORT_SYMBOL ( max8925_bulk_write  )
EXPORT_SYMBOL ( max8925_set_bits  )
int max8925_bulk_read ( struct i2c_client i2c,
int  reg,
int  count,
unsigned char buf 
)

Definition at line 83 of file max8925-i2c.c.

int max8925_bulk_write ( struct i2c_client i2c,
int  reg,
int  count,
unsigned char buf 
)

Definition at line 97 of file max8925-i2c.c.

int max8925_reg_read ( struct i2c_client i2c,
int  reg 
)

Definition at line 52 of file max8925-i2c.c.

int max8925_reg_write ( struct i2c_client i2c,
int  reg,
unsigned char  data 
)

Definition at line 69 of file max8925-i2c.c.

int max8925_set_bits ( struct i2c_client i2c,
int  reg,
unsigned char  mask,
unsigned char  data 
)

Definition at line 111 of file max8925-i2c.c.

MODULE_AUTHOR ( "Haojian Zhuang <[email protected]>"  )
MODULE_DESCRIPTION ( "I2C Driver for Maxim 8925"  )
MODULE_DEVICE_TABLE ( i2c  ,
max8925_id_table   
)
module_exit ( max8925_i2c_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( max8925_i2c_init  )