diff options
author | Ben Nizette <bn@niasdigital.com> | 2008-02-06 23:28:57 -0500 |
---|---|---|
committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-04-19 20:40:06 -0400 |
commit | 040b28fc0a69281a46adcebd6b31dd74da4a8d49 (patch) | |
tree | 9ce41af956c245292765f7ea5ece3ac7e9230b9b /include/asm-avr32 | |
parent | e573ebb0326f2f4a29ee2bd143bfc88ab0332926 (diff) |
avr32: pass i2c board info through at32_add_device_twi
New-style I2C drivers require that motherboard-mounted I2C devices are
registered with the I2C core, typically at arch_initcall time. This
can be done nice and neat by passing the struct i2c_board_info[]
through at32_add_device_twi just like we do for the SPI board info.
While we've got the hood up, remove a duplicate declaration of
at32_add_device_twi() in board.h.
[hskinnemoen@atmel.com: add missing i2c_board_info forward-declaration]
Signed-Off-By: Ben Nizette <bn@niasdigital.com>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32')
-rw-r--r-- | include/asm-avr32/arch-at32ap/board.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-avr32/arch-at32ap/board.h b/include/asm-avr32/arch-at32ap/board.h index 3fea2004f7db..a4e2d28bfb58 100644 --- a/include/asm-avr32/arch-at32ap/board.h +++ b/include/asm-avr32/arch-at32ap/board.h | |||
@@ -66,7 +66,10 @@ struct platform_device *at32_add_device_pwm(u32 mask); | |||
66 | struct platform_device * | 66 | struct platform_device * |
67 | at32_add_device_ssc(unsigned int id, unsigned int flags); | 67 | at32_add_device_ssc(unsigned int id, unsigned int flags); |
68 | 68 | ||
69 | struct platform_device *at32_add_device_twi(unsigned int id); | 69 | struct i2c_board_info; |
70 | struct platform_device *at32_add_device_twi(unsigned int id, | ||
71 | struct i2c_board_info *b, | ||
72 | unsigned int n); | ||
70 | struct platform_device *at32_add_device_mci(unsigned int id); | 73 | struct platform_device *at32_add_device_mci(unsigned int id); |
71 | struct platform_device *at32_add_device_ac97c(unsigned int id); | 74 | struct platform_device *at32_add_device_ac97c(unsigned int id); |
72 | struct platform_device *at32_add_device_abdac(unsigned int id); | 75 | struct platform_device *at32_add_device_abdac(unsigned int id); |