aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/i2c.c
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@nokia.com>2009-03-23 21:07:46 -0400
committerTony Lindgren <tony@atomide.com>2009-03-23 21:51:19 -0400
commitd4c58bf45a9a1668cb850e02a2e1aad785bd9325 (patch)
treec4d9226fcd36a8614e8badd665cb44a34c989497 /arch/arm/plat-omap/i2c.c
parent6c366e3299e8e9458881e19913a79ea3ceff4a8f (diff)
ARM: OMAP: Add documentation for function omap_register_i2c_bus
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/i2c.c')
-rw-r--r--arch/arm/plat-omap/i2c.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c
index 467531edefd3..3e95954e2a87 100644
--- a/arch/arm/plat-omap/i2c.c
+++ b/arch/arm/plat-omap/i2c.c
@@ -119,6 +119,15 @@ static void __init omap_i2c_mux_pins(int bus)
119 omap_cfg_reg(scl); 119 omap_cfg_reg(scl);
120} 120}
121 121
122/**
123 * omap_register_i2c_bus - register I2C bus with device descriptors
124 * @bus_id: bus id counting from number 1
125 * @clkrate: clock rate of the bus in kHz
126 * @info: pointer into I2C device descriptor table or NULL
127 * @len: number of descriptors in the table
128 *
129 * Returns 0 on success or an error code.
130 */
122int __init omap_register_i2c_bus(int bus_id, u32 clkrate, 131int __init omap_register_i2c_bus(int bus_id, u32 clkrate,
123 struct i2c_board_info const *info, 132 struct i2c_board_info const *info,
124 unsigned len) 133 unsigned len)