Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx25821-i2c.c File Reference
#include "cx25821.h"
#include <linux/i2c.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define dprintk(level, fmt, arg...)
 
#define I2C_WAIT_DELAY   32
 
#define I2C_WAIT_RETRY   64
 
#define I2C_EXTEND   (1 << 3)
 
#define I2C_NOSTOP   (1 << 4)
 

Functions

 module_param (i2c_debug, int, 0644)
 
 MODULE_PARM_DESC (i2c_debug,"enable debug messages [i2c]")
 
 module_param (i2c_scan, int, 0444)
 
 MODULE_PARM_DESC (i2c_scan,"scan i2c bus at insmod time")
 
int cx25821_i2c_register (struct cx25821_i2c *bus)
 
int cx25821_i2c_unregister (struct cx25821_i2c *bus)
 
void cx25821_av_clk (struct cx25821_dev *dev, int enable)
 
int cx25821_i2c_read (struct cx25821_i2c *bus, u16 reg_addr, int *value)
 
int cx25821_i2c_write (struct cx25821_i2c *bus, u16 reg_addr, int value)
 

Macro Definition Documentation

#define dprintk (   level,
  fmt,
  arg... 
)
Value:
do { \
if (i2c_debug >= level) \
printk(KERN_DEBUG "%s/0: " fmt, dev->name, ##arg); \
} while (0)

Definition at line 37 of file cx25821-i2c.c.

#define I2C_EXTEND   (1 << 3)

Definition at line 46 of file cx25821-i2c.c.

#define I2C_NOSTOP   (1 << 4)

Definition at line 47 of file cx25821-i2c.c.

#define I2C_WAIT_DELAY   32

Definition at line 43 of file cx25821-i2c.c.

#define I2C_WAIT_RETRY   64

Definition at line 44 of file cx25821-i2c.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 24 of file cx25821-i2c.c.

Function Documentation

void cx25821_av_clk ( struct cx25821_dev dev,
int  enable 
)

Definition at line 332 of file cx25821-i2c.c.

int cx25821_i2c_read ( struct cx25821_i2c bus,
u16  reg_addr,
int value 
)

Definition at line 355 of file cx25821-i2c.c.

int cx25821_i2c_register ( struct cx25821_i2c bus)

Definition at line 302 of file cx25821-i2c.c.

int cx25821_i2c_unregister ( struct cx25821_i2c bus)

Definition at line 326 of file cx25821-i2c.c.

int cx25821_i2c_write ( struct cx25821_i2c bus,
u16  reg_addr,
int  value 
)

Definition at line 389 of file cx25821-i2c.c.

module_param ( i2c_debug  ,
int  ,
0644   
)
module_param ( i2c_scan  ,
int  ,
0444   
)
MODULE_PARM_DESC ( i2c_debug  ,
"enable debug messages "  [i2c] 
)
MODULE_PARM_DESC ( i2c_scan  ,
"scan i2c bus at insmod time  
)