ARM: PNX4008: move i2c_adapter structure inside the drivers private data

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2009-11-21 12:25:27 +00:00
parent 44c5d73918
commit 9d7f73632c
3 changed files with 26 additions and 36 deletions

View file

@ -29,10 +29,12 @@ struct i2c_pnx_algo_data {
struct i2c_pnx_mif mif;
int last;
struct clk *clk;
struct i2c_pnx_data *i2c_pnx;
struct i2c_adapter adapter;
};
struct i2c_pnx_data {
struct i2c_adapter *adapter;
const char *name;
u32 base;
int irq;
};