From patchwork Tue Feb 13 01:32:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 10215027 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2E0760236 for ; Tue, 13 Feb 2018 01:34:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D484E28D51 for ; Tue, 13 Feb 2018 01:34:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8B5D28E31; Tue, 13 Feb 2018 01:34:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A11A928DCE for ; Tue, 13 Feb 2018 01:34:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QmkYNy47Tgy7CrW3ezmx/V3P08CEHQtL40BJR5t0+3Q=; b=hlXh+8yvJaNzCXkO2UNBzUDrS RBbsyLOAhu8v+Q+1VDnSHvLwEcZg/5vQD1n7I8rHiPYeMgPjZSfklhUWIWHP+65sLGrUNEWW1L/y0 GNotBqP68KnfRqsyzjBepKicTTHeG1EcMgR8JF/XDLoLFxNZWcFGdZ0FmXogKiIKupHFRr+MgQNuK 1nhpyMSotqmmPVgqWY52YtA19ZcRDuu2ns3iqpcpoyN0p5x0uAs6kYCCZO3S/++2DrnOQX8wZ/ktZ Apb/+gLp8sr5iTfotKhgFbNt9yeYSO8OiDgjGpxGux5JvXWu2NrCYg8VWeFm4qII8l23qOV2KkZoA Iz2VAylPw==; Received: from bombadil.infradead.org ([198.137.202.133]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elPTd-0001xg-Jn; Tue, 13 Feb 2018 01:33:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QmkYNy47Tgy7CrW3ezmx/V3P08CEHQtL40BJR5t0+3Q=; b=k8u7K12dRu/Ce5JrZKi01iKMv SR0YpbvMxMN9zX5SZZ7xvZx5U3/Rz2KzWj9y/HIMPZSY9zU/lZoWjOzEknPJa5LPPcki8H0V/eUOP urto7vEmg5yoDsRdMCro86+K+9+ZTLMIoGAeJJ06s4NjyNXj/fCKqX6ScCwLhd0HOpKuwkUV0lf3y jmS31LdPvVM3S2Bi2XrXAE8ksGbtmIIugrGKMIcVmKe47sHnEgC4JOV+wCZEVlat3BSKKZDZUNGRw oDtV1mAM+7kmYKLJSfg10UXfUCQTPl+MZAY5bdiMTHxfMUwPv52bNqnnLqzRcmG5sv+GbtRvI8/wk DxcBB7+rA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elPTU-0000EI-Bs; Tue, 13 Feb 2018 01:33:36 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elPSv-0008Pe-4D for linux-arm-kernel@lists.infradead.org; Tue, 13 Feb 2018 01:33:04 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1D1WlfU003168; Mon, 12 Feb 2018 19:32:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1518485567; bh=jfSGaIgLmXwn53cXb2KzHbkUzIyeS+pjE6Yfe3pMWqk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lttk80Pt1EkESJQVVa1PTwmqToXJ48z7Vy3JCK2MoAzCYj0XQT9Qp19E8ZXYQVyLT uD7Z3zQ1YlMZUfP90K18x9/y6qGRdVsWZ6GXuP3S/V2XLxm2RKjfN4kpddltrq7dlt /gOhUYalVsbsSwNkTX2UeW7SGL4/D23OsGAGBp6o= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1D1WlJW005732; Mon, 12 Feb 2018 19:32:47 -0600 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 12 Feb 2018 19:32:47 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Mon, 12 Feb 2018 19:32:47 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1D1Wljq031669; Mon, 12 Feb 2018 19:32:47 -0600 Received: from localhost (irmo.dhcp.ti.com [128.247.58.153]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w1D1Wlx01791; Mon, 12 Feb 2018 19:32:47 -0600 (CST) From: Suman Anna To: Tony Lindgren Subject: [PATCH 8/9] ARM: OMAP: Move plat/i2c.h into mach-omap1 folder Date: Mon, 12 Feb 2018 19:32:42 -0600 Message-ID: <20180213013243.8378-9-s-anna@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213013243.8378-1-s-anna@ti.com> References: <20180213013243.8378-1-s-anna@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tero Kristo , Keerthy , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The current contents of plat/i2c.h are only relevant for OMAP1 platforms, as all the equivalent functions for OMAP2 has been dropped in commit 65fa3e719f36 ("ARM: OMAP2+: Remove legacy i2c.c platform init code"), and which has also moved the left-over code from plat-omap into mach-omap1. The hwmod is a concept only applicable for OMAP2 platforms, and the omap_i2c_reset() is already declared in mach-omap2/i2c.h. So, move the current plat/i2c.h header file into the mach-omap1 folder, and adjust the header usage accordingly. Signed-off-by: Suman Anna --- arch/arm/mach-omap1/common.h | 3 +-- arch/arm/mach-omap1/i2c.c | 2 -- arch/arm/{plat-omap/include/plat => mach-omap1}/i2c.h | 9 +++------ arch/arm/mach-omap2/i2c.h | 4 ++-- 4 files changed, 6 insertions(+), 12 deletions(-) rename arch/arm/{plat-omap/include/plat => mach-omap1}/i2c.h (90%) diff --git a/arch/arm/mach-omap1/common.h b/arch/arm/mach-omap1/common.h index 65bb6e8085de..d83ff257eaa8 100644 --- a/arch/arm/mach-omap1/common.h +++ b/arch/arm/mach-omap1/common.h @@ -32,11 +32,10 @@ #include -#include - #include #include "soc.h" +#include "i2c.h" #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) void omap7xx_map_io(void); diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c index 32f6c53367bf..5bdf3c4190f9 100644 --- a/arch/arm/mach-omap1/i2c.c +++ b/arch/arm/mach-omap1/i2c.c @@ -24,8 +24,6 @@ #include #include "soc.h" -#include - #define OMAP_I2C_SIZE 0x3f #define OMAP1_I2C_BASE 0xfffb3800 diff --git a/arch/arm/plat-omap/include/plat/i2c.h b/arch/arm/mach-omap1/i2c.h similarity index 90% rename from arch/arm/plat-omap/include/plat/i2c.h rename to arch/arm/mach-omap1/i2c.h index 810629d79668..54a2bce7879e 100644 --- a/arch/arm/plat-omap/include/plat/i2c.h +++ b/arch/arm/mach-omap1/i2c.h @@ -19,8 +19,8 @@ * */ -#ifndef __PLAT_OMAP_I2C_H -#define __PLAT_OMAP_I2C_H +#ifndef __ARCH_ARM_MACH_OMAP1_I2C_H +#define __ARCH_ARM_MACH_OMAP1_I2C_H struct i2c_board_info; struct omap_i2c_bus_platform_data; @@ -47,7 +47,4 @@ static inline int omap_register_i2c_bus_cmdline(void) } #endif -struct omap_hwmod; -int omap_i2c_reset(struct omap_hwmod *oh); - -#endif /* __PLAT_OMAP_I2C_H */ +#endif /* __ARCH_ARM_MACH_OMAP1_I2C_H */ diff --git a/arch/arm/mach-omap2/i2c.h b/arch/arm/mach-omap2/i2c.h index f76ff790b435..4d085c7ad425 100644 --- a/arch/arm/mach-omap2/i2c.h +++ b/arch/arm/mach-omap2/i2c.h @@ -19,11 +19,11 @@ * */ -#include - #ifndef __MACH_OMAP2_I2C_H #define __MACH_OMAP2_I2C_H +struct omap_hwmod; + int omap_i2c_reset(struct omap_hwmod *oh); #endif /* __MACH_OMAP2_I2C_H */