Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cx231xx-i2c.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include <media/v4l2-common.h>
#include <media/tuner.h>
#include "cx231xx.h"

Go to the source code of this file.

Macros

#define dprintk1(lvl, fmt, args...)
 
#define dprintk2(lvl, fmt, args...)
 

Functions

 module_param (i2c_scan, int, 0444)
 
 MODULE_PARM_DESC (i2c_scan,"scan i2c bus at insmod time")
 
 module_param (i2c_debug, int, 0644)
 
 MODULE_PARM_DESC (i2c_debug,"enable debug messages [i2c]")
 
int cx231xx_i2c_send_bytes (struct i2c_adapter *i2c_adap, const struct i2c_msg *msg)
 
void cx231xx_do_i2c_scan (struct cx231xx *dev, struct i2c_client *c)
 
int cx231xx_i2c_register (struct cx231xx_i2c *bus)
 
int cx231xx_i2c_unregister (struct cx231xx_i2c *bus)
 

Macro Definition Documentation

#define dprintk1 (   lvl,
  fmt,
  args... 
)
Value:
do { \
if (i2c_debug >= lvl) { \
printk(fmt, ##args); \
} \
} while (0)

Definition at line 42 of file cx231xx-i2c.c.

#define dprintk2 (   lvl,
  fmt,
  args... 
)
Value:
do { \
if (i2c_debug >= lvl) { \
printk(KERN_DEBUG "%s at %s: " fmt, \
dev->name, __func__ , ##args); \
} \
} while (0)

Definition at line 49 of file cx231xx-i2c.c.

Function Documentation

void cx231xx_do_i2c_scan ( struct cx231xx dev,
struct i2c_client c 
)

Definition at line 474 of file cx231xx-i2c.c.

int cx231xx_i2c_register ( struct cx231xx_i2c bus)

Definition at line 496 of file cx231xx-i2c.c.

int cx231xx_i2c_send_bytes ( struct i2c_adapter i2c_adap,
const struct i2c_msg msg 
)

Definition at line 75 of file cx231xx-i2c.c.

int cx231xx_i2c_unregister ( struct cx231xx_i2c bus)

Definition at line 528 of file cx231xx-i2c.c.

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