From patchwork Thu Jun 2 00:19:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 842132 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p520JwMw027761 for ; Thu, 2 Jun 2011 00:19:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758994Ab1FBATz (ORCPT ); Wed, 1 Jun 2011 20:19:55 -0400 Received: from na3sys009aog104.obsmtp.com ([74.125.149.73]:52796 "EHLO na3sys009aog104.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758959Ab1FBATy (ORCPT ); Wed, 1 Jun 2011 20:19:54 -0400 Received: from mail-px0-f170.google.com ([209.85.212.170]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTebXKeG9+BXbIFbM/N54fKgN3TPlFctH@postini.com; Wed, 01 Jun 2011 17:19:54 PDT Received: by mail-px0-f170.google.com with SMTP id 19so224127pxi.29 for ; Wed, 01 Jun 2011 17:19:53 -0700 (PDT) Received: by 10.68.32.3 with SMTP id e3mr35779pbi.325.1306973993401; Wed, 01 Jun 2011 17:19:53 -0700 (PDT) Received: from localhost (c-24-19-7-36.hsd1.wa.comcast.net [24.19.7.36]) by mx.google.com with ESMTPS id p5sm73831pbk.20.2011.06.01.17.19.52 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2011 17:19:52 -0700 (PDT) From: Kevin Hilman To: Ben Dooks , linux-i2c@vger.kernel.org Cc: Andy Green , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v4 05/18] I2C: OMAP: add rev to omap i2c platform data Date: Wed, 1 Jun 2011 17:19:31 -0700 Message-Id: <1306973984-15165-6-git-send-email-khilman@ti.com> X-Mailer: git-send-email 1.7.4 In-Reply-To: <1306973984-15165-1-git-send-email-khilman@ti.com> References: <1306973984-15165-1-git-send-email-khilman@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 02 Jun 2011 00:19:58 +0000 (UTC) From: Andy Green We need to pass the I2C IP revision from the hwmod class up into the OMAP I2C driver, which does not have direct access to it. This adds a member to the platform data the OMAP I2C driver does use already to hold the I2C IP revision. Cc: patches@linaro.org Cc: Ben Dooks Reported-by: Peter Maydell Signed-off-by: Andy Green Signed-off-by: Tony Lindgren Signed-off-by: Kevin Hilman --- include/linux/i2c-omap.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/linux/i2c-omap.h b/include/linux/i2c-omap.h index 701886d..b321211 100644 --- a/include/linux/i2c-omap.h +++ b/include/linux/i2c-omap.h @@ -17,6 +17,7 @@ struct omap_i2c_bus_platform_data { u32 clkrate; + u32 rev; void (*set_mpu_wkup_lat)(struct device *dev, long set); int (*device_enable) (struct platform_device *pdev); int (*device_shutdown) (struct platform_device *pdev);