From patchwork Thu Jul 21 06:53:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shubhrajyoti Datta X-Patchwork-Id: 993902 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6L6rRsQ008333 for ; Thu, 21 Jul 2011 06:59:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751318Ab1GUGxY (ORCPT ); Thu, 21 Jul 2011 02:53:24 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:43096 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751099Ab1GUGxW (ORCPT ); Thu, 21 Jul 2011 02:53:22 -0400 Received: from dbdp20.itg.ti.com ([172.24.170.38]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id p6L6rHFd009248 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Jul 2011 01:53:19 -0500 Received: from dbde70.ent.ti.com (localhost [127.0.0.1]) by dbdp20.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6L6rH9Q015859; Thu, 21 Jul 2011 12:23:17 +0530 (IST) Received: from dbdp31.itg.ti.com (172.24.170.98) by DBDE70.ent.ti.com (172.24.170.148) with Microsoft SMTP Server id 8.3.106.1; Thu, 21 Jul 2011 12:23:17 +0530 Received: from a0393217ubnlt.india.ti.com ([172.24.190.93]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6L6rAH5018167; Thu, 21 Jul 2011 12:23:14 +0530 (IST) From: Shubhrajyoti D To: CC: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@ti.com, rnayak@ti.com, Shubhrajyoti D Subject: [PATCH 1/5] OMAP: I2C: Add a device reset field to platform data Date: Thu, 21 Jul 2011 12:23:01 +0530 Message-ID: <1311231185-5503-2-git-send-email-shubhrajyoti@ti.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1311231185-5503-1-git-send-email-shubhrajyoti@ti.com> References: <1311231185-5503-1-git-send-email-shubhrajyoti@ti.com> MIME-Version: 1.0 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 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Jul 2011 06:59:08 +0000 (UTC) Under some conditions the driver may want to do a reset of the device. Adding a reset field field to the platform data. Signed-off-by: Shubhrajyoti D --- 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 98ae49b..8aa91b6 100644 --- a/include/linux/i2c-omap.h +++ b/include/linux/i2c-omap.h @@ -38,6 +38,7 @@ struct omap_i2c_bus_platform_data { int (*device_enable) (struct platform_device *pdev); int (*device_shutdown) (struct platform_device *pdev); int (*device_idle) (struct platform_device *pdev); + int (*device_reset) (struct device *dev); }; #endif