linux/drivers/media/pci/ddbridge/ddbridge-i2c.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * ddbridge-i2c.h: Digital Devices bridge i2c driver
 *
 * Copyright (C) 2010-2017 Digital Devices GmbH
 *                         Ralph Metzler <[email protected]>
 *                         Marcus Metzler <[email protected]>
 */

#ifndef __DDBRIDGE_I2C_H__
#define __DDBRIDGE_I2C_H__

#include <linux/i2c.h>

#include "ddbridge.h"

/******************************************************************************/

void ddb_i2c_release(struct ddb *dev);
int ddb_i2c_init(struct ddb *dev);

/******************************************************************************/

static int __maybe_unused i2c_io(struct i2c_adapter *adapter, u8 adr,
				 u8 *wbuf, u32 wlen, u8 *rbuf, u32 rlen)
{}

static int __maybe_unused i2c_write(struct i2c_adapter *adap, u8 adr,
				    u8 *data, int len)
{}

static int __maybe_unused i2c_read(struct i2c_adapter *adapter, u8 adr, u8 *val)
{}

static int __maybe_unused i2c_read_regs(struct i2c_adapter *adapter,
					u8 adr, u8 reg, u8 *val, u8 len)
{}

static int __maybe_unused i2c_read_regs16(struct i2c_adapter *adapter,
					  u8 adr, u16 reg, u8 *val, u8 len)
{}

static int __maybe_unused i2c_write_reg16(struct i2c_adapter *adap,
					  u8 adr, u16 reg, u8 val)
{}

static int __maybe_unused i2c_write_reg(struct i2c_adapter *adap,
					u8 adr, u8 reg, u8 val)
{}

static int __maybe_unused i2c_read_reg16(struct i2c_adapter *adapter,
					 u8 adr, u16 reg, u8 *val)
{}

static int __maybe_unused i2c_read_reg(struct i2c_adapter *adapter,
				       u8 adr, u8 reg, u8 *val)
{}

#endif /* __DDBRIDGE_I2C_H__ */