diff options
Diffstat (limited to 'include/linux/i2c-pnx.h')
| -rw-r--r-- | include/linux/i2c-pnx.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/include/linux/i2c-pnx.h b/include/linux/i2c-pnx.h index 9eb07bbc6522..a87124d4d533 100644 --- a/include/linux/i2c-pnx.h +++ b/include/linux/i2c-pnx.h | |||
| @@ -12,9 +12,8 @@ | |||
| 12 | #ifndef __I2C_PNX_H__ | 12 | #ifndef __I2C_PNX_H__ |
| 13 | #define __I2C_PNX_H__ | 13 | #define __I2C_PNX_H__ |
| 14 | 14 | ||
| 15 | #include <linux/pm.h> | ||
| 16 | |||
| 17 | struct platform_device; | 15 | struct platform_device; |
| 16 | struct clk; | ||
| 18 | 17 | ||
| 19 | struct i2c_pnx_mif { | 18 | struct i2c_pnx_mif { |
| 20 | int ret; /* Return value */ | 19 | int ret; /* Return value */ |
| @@ -26,20 +25,18 @@ struct i2c_pnx_mif { | |||
| 26 | }; | 25 | }; |
| 27 | 26 | ||
| 28 | struct i2c_pnx_algo_data { | 27 | struct i2c_pnx_algo_data { |
| 29 | u32 base; | 28 | void __iomem *ioaddr; |
| 30 | u32 ioaddr; | ||
| 31 | int irq; | ||
| 32 | struct i2c_pnx_mif mif; | 29 | struct i2c_pnx_mif mif; |
| 33 | int last; | 30 | int last; |
| 31 | struct clk *clk; | ||
| 32 | struct i2c_pnx_data *i2c_pnx; | ||
| 33 | struct i2c_adapter adapter; | ||
| 34 | }; | 34 | }; |
| 35 | 35 | ||
| 36 | struct i2c_pnx_data { | 36 | struct i2c_pnx_data { |
| 37 | int (*suspend) (struct platform_device *pdev, pm_message_t state); | 37 | const char *name; |
| 38 | int (*resume) (struct platform_device *pdev); | 38 | u32 base; |
| 39 | u32 (*calculate_input_freq) (struct platform_device *pdev); | 39 | int irq; |
| 40 | int (*set_clock_run) (struct platform_device *pdev); | ||
| 41 | int (*set_clock_stop) (struct platform_device *pdev); | ||
| 42 | struct i2c_adapter *adapter; | ||
| 43 | }; | 40 | }; |
| 44 | 41 | ||
| 45 | #endif /* __I2C_PNX_H__ */ | 42 | #endif /* __I2C_PNX_H__ */ |
