From: Jarkko Nikula Subject: [RFC 1/3] ARM: OMAP: Add documentation for function omap_register_i2c_bus Date: Mon, 9 Feb 2009 09:59:55 +0200 Message-ID: <1234166397-4038-1-git-send-email-jarkko.nikula@nokia.com> References: <1234114369-11399-1-git-send-email-jhnikula@gmail.com> Return-path: Received: from smtp.nokia.com ([192.100.105.134]:55000 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750767AbZBIIAl (ORCPT ); Mon, 9 Feb 2009 03:00:41 -0500 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx09.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n1980HjD025234 for ; Mon, 9 Feb 2009 02:00:39 -0600 In-Reply-To: <1234114369-11399-1-git-send-email-jhnikula@gmail.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org Cc: Jarkko Nikula Signed-off-by: Jarkko Nikula --- arch/arm/plat-omap/i2c.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index 467531e..3e95954 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) omap_cfg_reg(scl); } +/** + * omap_register_i2c_bus - register I2C bus with device descriptors + * @bus_id: bus id counting from number 1 + * @clkrate: clock rate of the bus in kHz + * @info: pointer into I2C device descriptor table or NULL + * @len: number of descriptors in the table + * + * Returns 0 on success or an error code. + */ int __init omap_register_i2c_bus(int bus_id, u32 clkrate, struct i2c_board_info const *info, unsigned len) -- 1.5.6.5