diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-at91.c')
| -rw-r--r-- | drivers/i2c/busses/i2c-at91.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/i2c/busses/i2c-at91.c b/drivers/i2c/busses/i2c-at91.c index 511bd756f280..4f7577f23142 100644 --- a/drivers/i2c/busses/i2c-at91.c +++ b/drivers/i2c/busses/i2c-at91.c | |||
| @@ -66,24 +66,24 @@ | |||
| 66 | #define AT91_TWI_THR 0x0034 /* Transmit Holding Register */ | 66 | #define AT91_TWI_THR 0x0034 /* Transmit Holding Register */ |
| 67 | 67 | ||
| 68 | struct at91_twi_pdata { | 68 | struct at91_twi_pdata { |
| 69 | unsigned clk_max_div; | 69 | unsigned clk_max_div; |
| 70 | unsigned clk_offset; | 70 | unsigned clk_offset; |
| 71 | bool has_unre_flag; | 71 | bool has_unre_flag; |
| 72 | }; | 72 | }; |
| 73 | 73 | ||
| 74 | struct at91_twi_dev { | 74 | struct at91_twi_dev { |
| 75 | struct device *dev; | 75 | struct device *dev; |
| 76 | void __iomem *base; | 76 | void __iomem *base; |
| 77 | struct completion cmd_complete; | 77 | struct completion cmd_complete; |
| 78 | struct clk *clk; | 78 | struct clk *clk; |
| 79 | u8 *buf; | 79 | u8 *buf; |
| 80 | size_t buf_len; | 80 | size_t buf_len; |
| 81 | struct i2c_msg *msg; | 81 | struct i2c_msg *msg; |
| 82 | int irq; | 82 | int irq; |
| 83 | unsigned transfer_status; | 83 | unsigned transfer_status; |
| 84 | struct i2c_adapter adapter; | 84 | struct i2c_adapter adapter; |
| 85 | unsigned twi_cwgr_reg; | 85 | unsigned twi_cwgr_reg; |
| 86 | struct at91_twi_pdata *pdata; | 86 | struct at91_twi_pdata *pdata; |
| 87 | }; | 87 | }; |
| 88 | 88 | ||
| 89 | static unsigned at91_twi_read(struct at91_twi_dev *dev, unsigned reg) | 89 | static unsigned at91_twi_read(struct at91_twi_dev *dev, unsigned reg) |
