#include <linux/module.h>
#include <linux/usb.h>
#include <linux/i2c.h>
#include "stk1160.h"
#include "stk1160-reg.h"
static unsigned int i2c_debug;
module_param(i2c_debug, int, 0644);
MODULE_PARM_DESC(…) …;
#define dprintk_i2c(fmt, args...) …
static int stk1160_i2c_busy_wait(struct stk1160 *dev, u8 wait_bit_mask)
{ … }
static int stk1160_i2c_write_reg(struct stk1160 *dev, u8 addr,
u8 reg, u8 value)
{ … }
static int stk1160_i2c_read_reg(struct stk1160 *dev, u8 addr,
u8 reg, u8 *value)
{ … }
static int stk1160_i2c_check_for_device(struct stk1160 *dev,
unsigned char addr)
{ … }
static int stk1160_i2c_xfer(struct i2c_adapter *i2c_adap,
struct i2c_msg msgs[], int num)
{ … }
static u32 functionality(struct i2c_adapter *adap)
{ … }
static const struct i2c_algorithm algo = …;
static const struct i2c_adapter adap_template = …;
static const struct i2c_client client_template = …;
int stk1160_i2c_register(struct stk1160 *dev)
{ … }
int stk1160_i2c_unregister(struct stk1160 *dev)
{ … }