From patchwork Sun Feb 8 17:32:47 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Nikula X-Patchwork-Id: 6111 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n18HUgXh018052 for ; Sun, 8 Feb 2009 17:30:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752791AbZBHRaq (ORCPT ); Sun, 8 Feb 2009 12:30:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752812AbZBHRaq (ORCPT ); Sun, 8 Feb 2009 12:30:46 -0500 Received: from mail-ew0-f21.google.com ([209.85.219.21]:55513 "EHLO mail-ew0-f21.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbZBHRap (ORCPT ); Sun, 8 Feb 2009 12:30:45 -0500 Received: by ewy14 with SMTP id 14so2177451ewy.13 for ; Sun, 08 Feb 2009 09:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=nVPmM8M8/YYVTz6yPvrsnjXHCCwsmgoovGyTUisxYC0=; b=MyOC+cqEi0TxXNYSPzNcPmHPiIdLGP/uqf5zzPeKRyVENlMZlcr1+4m2RMIipp4DWC eI2CjEBd8Qa/h7DumT/BspdH51HaU5KgwsqML2wWDS7pcfjgUTPDhovYqfAuDLt4fROQ 1W06XZZGx6og3wu+VyO+9eHdlCeVSgipTQibM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=a3mVJtk8E9DUvo0R50hxiKfjI4nxThYH8915GBH5GRfMKTr8wBDTJW+wTgimRgICNG L1BgUQBXqawNVZGhd7czo2Q7Q4DyhSHMnbArVUDRS5jaNuQFPBg1ZtY+pfDwLSePOxhI viebhp9i/gp4XZKn4UqKWNSUDC6nnhffdXe+A= Received: by 10.210.61.8 with SMTP id j8mr2513608eba.147.1234114244070; Sun, 08 Feb 2009 09:30:44 -0800 (PST) Received: from localhost (host-94-101-4-66.taloyhtioverkot.fi [94.101.4.66]) by mx.google.com with ESMTPS id 28sm4636173eyg.55.2009.02.08.09.30.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Feb 2009 09:30:40 -0800 (PST) From: Jarkko Nikula To: linux-omap@vger.kernel.org Cc: Jarkko Nikula Subject: [PATCH] ARM: OMAP: Add documentation for function omap_register_i2c_bus Date: Sun, 8 Feb 2009 19:32:47 +0200 Message-Id: <1234114369-11399-2-git-send-email-jhnikula@gmail.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1234114369-11399-1-git-send-email-jhnikula@gmail.com> References: <1234114369-11399-1-git-send-email-jhnikula@gmail.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: 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)