linux/drivers/media/pci/cx23885/cx23885-i2c.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Driver for the Conexant CX23885 PCIe bridge
 *
 *  Copyright (c) 2006 Steven Toth <[email protected]>
 */

#include "cx23885.h"

#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <asm/io.h>

#include <media/v4l2-common.h>

static unsigned int i2c_debug;
module_param(i2c_debug, int, 0644);
MODULE_PARM_DESC();

static unsigned int i2c_scan;
module_param(i2c_scan, int, 0444);
MODULE_PARM_DESC();

#define dprintk(level, fmt, arg...)

#define I2C_WAIT_DELAY
#define I2C_WAIT_RETRY

#define I2C_EXTEND
#define I2C_NOSTOP

static inline int i2c_slave_did_ack(struct i2c_adapter *i2c_adap)
{}

static inline int i2c_is_busy(struct i2c_adapter *i2c_adap)
{}

static int i2c_wait_done(struct i2c_adapter *i2c_adap)
{}

static int i2c_sendbytes(struct i2c_adapter *i2c_adap,
			 const struct i2c_msg *msg, int joined_rlen)
{}

static int i2c_readbytes(struct i2c_adapter *i2c_adap,
			 const struct i2c_msg *msg, int joined)
{}

static int i2c_xfer(struct i2c_adapter *i2c_adap,
		    struct i2c_msg *msgs, int num)
{}

static u32 cx23885_functionality(struct i2c_adapter *adap)
{}

static const struct i2c_algorithm cx23885_i2c_algo_template =;

/* ----------------------------------------------------------------------- */

static const struct i2c_adapter cx23885_i2c_adap_template =;

static const struct i2c_client cx23885_i2c_client_template =;

static char *i2c_devs[128] =;

static void do_i2c_scan(char *name, struct i2c_client *c)
{}

/* init + register i2c adapter */
int cx23885_i2c_register(struct cx23885_i2c *bus)
{}

int cx23885_i2c_unregister(struct cx23885_i2c *bus)
{}

void cx23885_av_clk(struct cx23885_dev *dev, int enable)
{}