#include <linux/err.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/pm_runtime.h>
#include "i2c-at91.h"
static irqreturn_t atmel_twi_interrupt_slave(int irq, void *dev_id)
{ … }
static int at91_reg_slave(struct i2c_client *slave)
{ … }
static int at91_unreg_slave(struct i2c_client *slave)
{ … }
static u32 at91_twi_func(struct i2c_adapter *adapter)
{ … }
static const struct i2c_algorithm at91_twi_algorithm_slave = …;
int at91_twi_probe_slave(struct platform_device *pdev,
u32 phy_addr, struct at91_twi_dev *dev)
{ … }
void at91_init_twi_bus_slave(struct at91_twi_dev *dev)
{ … }