swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: e0f2e3a06be513352cb4955313ed7e55909acd84 authored by Linus Torvalds on 25 March 2007, 22:56:23 UTC
Linux 2.6.21-rc5
Tip revision: e0f2e3a
i2c-algo-pca.h
#ifndef _LINUX_I2C_ALGO_PCA_H
#define _LINUX_I2C_ALGO_PCA_H

struct i2c_algo_pca_data {
	int  (*get_own)			(struct i2c_algo_pca_data *adap); /* Obtain own address */
	int  (*get_clock)		(struct i2c_algo_pca_data *adap);
	void (*write_byte)		(struct i2c_algo_pca_data *adap, int reg, int val);
	int  (*read_byte)		(struct i2c_algo_pca_data *adap, int reg);
	int  (*wait_for_interrupt)	(struct i2c_algo_pca_data *adap);
};

int i2c_pca_add_bus(struct i2c_adapter *);

#endif /* _LINUX_I2C_ALGO_PCA_H */
back to top