#include <linux/clk.h>
#include <linux/i2c.h>
#include <linux/iopoll.h>
#include "sun4i_hdmi.h"
#define SUN4I_HDMI_DDC_INT_STATUS_ERROR_MASK …
#define RX_THRESHOLD …
static int fifo_transfer(struct sun4i_hdmi *hdmi, u8 *buf, int len, bool read)
{ … }
static int xfer_msg(struct sun4i_hdmi *hdmi, struct i2c_msg *msg)
{ … }
static int sun4i_hdmi_i2c_xfer(struct i2c_adapter *adap,
struct i2c_msg *msgs, int num)
{ … }
static u32 sun4i_hdmi_i2c_func(struct i2c_adapter *adap)
{ … }
static const struct i2c_algorithm sun4i_hdmi_i2c_algorithm = …;
static int sun4i_hdmi_init_regmap_fields(struct sun4i_hdmi *hdmi)
{ … }
int sun4i_hdmi_i2c_create(struct device *dev, struct sun4i_hdmi *hdmi)
{ … }