From patchwork Sat Oct 8 16:36:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 118553 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 1D602B70C7 for ; Sun, 9 Oct 2011 03:37:29 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BC8BC28E01; Sat, 8 Oct 2011 18:37:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5wc1rE5Bk1l6; Sat, 8 Oct 2011 18:37:13 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E96A28D84; Sat, 8 Oct 2011 18:36:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A54F828CD9 for ; Sat, 8 Oct 2011 18:36:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f4yQ87+Im6l1 for ; Sat, 8 Oct 2011 18:36:30 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from smtpi3.ngi.it (smtpi3.ngi.it [88.149.128.33]) by theia.denx.de (Postfix) with ESMTP id 41C1528CC4 for ; Sat, 8 Oct 2011 18:36:29 +0200 (CEST) Received: from paperina.lan (unknown [88.149.182.160]) by smtpi3.ngi.it (Postfix) with ESMTP id 098DB3189B5; Sat, 8 Oct 2011 18:36:29 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by paperina.lan (Postfix) with ESMTP id E68F0140A101; Sat, 8 Oct 2011 18:36:28 +0200 (CEST) Received: from paperina.lan ([127.0.0.1]) by localhost (paperina.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i8ySSAmt1lS4; Sat, 8 Oct 2011 18:36:25 +0200 (CEST) Received: from papero.lan (papero.lan [192.168.2.105]) by paperina.lan (Postfix) with ESMTP id A8F4E140A11F; Sat, 8 Oct 2011 18:36:19 +0200 (CEST) From: Stefano Babic To: u-boot@lists.denx.de Date: Sat, 8 Oct 2011 18:36:01 +0200 Message-Id: <1318091769-30979-6-git-send-email-sbabic@denx.de> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1318091769-30979-1-git-send-email-sbabic@denx.de> References: <1318091769-30979-1-git-send-email-sbabic@denx.de> Cc: Heiko Schocher Subject: [U-Boot] [PATCH 05/13] I2c: add missing i2c_set_bus_num to mxc_i2c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The function i2c_set_bus_num() is used on most SOCs. The driver does not support multiple I2C busses, and an empty function is added to be compatible with general code (example: PMIC driver). Signed-off-by: Stefano Babic Cc: Heiko Schocher --- drivers/i2c/mxc_i2c.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 2869d7c..de878ce 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -450,4 +450,9 @@ int i2c_write(uchar chip, uint addr, int alen, uchar *buf, int len) return ret; } + +int i2c_set_bus_num(unsigned int bus) +{ + return 0; +} #endif /* CONFIG_HARD_I2C */