From patchwork Sun Feb 10 13:06:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yifeng Li X-Patchwork-Id: 10804739 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6FB8714E1 for ; Sun, 10 Feb 2019 13:06:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E35E297D8 for ; Sun, 10 Feb 2019 13:06:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 527B529809; Sun, 10 Feb 2019 13:06:40 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 000C8297D8 for ; Sun, 10 Feb 2019 13:06:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbfBJNGj (ORCPT ); Sun, 10 Feb 2019 08:06:39 -0500 Received: from tomli.me ([153.92.126.73]:56248 "EHLO tomli.me" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbfBJNGj (ORCPT ); Sun, 10 Feb 2019 08:06:39 -0500 Received: from tomli.me (localhost [127.0.0.1]) by tomli.me (OpenSMTPD) with ESMTP id 606e43c9; Sun, 10 Feb 2019 13:06:36 +0000 (UTC) X-HELO: localhost.lan Authentication-Results: tomli.me; auth=pass (login) smtp.auth=tomli Received: from Unknown (HELO localhost.lan) (2402:f000:1:1501:200:5efe:7b76:76e8) by tomli.me (qpsmtpd/0.95) with ESMTPSA (DHE-RSA-CHACHA20-POLY1305 encrypted); Sun, 10 Feb 2019 13:06:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tomli.me; h=from:to:cc:subject:date:message-id:in-reply-to:references:mime-version:content-transfer-encoding; s=1490979754; bh=/JYXTtWtfEbCfkwuRyyx+yLPD29cYbuI1bGzDpentNg=; b=HeWKcGORjr2aQtt/Co/o6wa+h83EUc+SPd5HDzqBZdcDj9sveFT4Jl9vzKAJSVhKyjw08jHYwqlvtGBAcHaYKGLaS27N+ljqvwp3O8IJodaDhyJtoaXyQt8XATlEdNlWuEYhdLPxskIFmZPHU15yju1XN1PZ+SZGWgiqziF4Ltd+DBe+K70xNuV9swD81QULhVJ3KEnT6hxK6T/CHSeOiDXRFgbFJoVhJBLMsRop+e7bjUZ5YvC8GaGdZ3uWNoamQjdpZ+RPW0VxH0F98RfFxKPSriBIz9PX2EDc63DJKeuNvLAHK37TKe/vVrsJQASy+gB0gaDdQ1hFWykCFIF/YA== From: Yifeng Li To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Huacai Chen , Ralf Baechle , Paul Burton , James Hogan , Yifeng Li , linux-kernel@vger.kernel.org Subject: [PATCH 1/1] mips: loongson64: move EC header to include/asm/mach-loongson64 Date: Sun, 10 Feb 2019 21:06:17 +0800 Message-Id: <20190210130617.8392-2-tomli@tomli.me> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190210130617.8392-1-tomli@tomli.me> References: <20190210130617.8392-1-tomli@tomli.me> MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In order to operate the Embedded Controller from multiple platform drivers, it should be possible to include lemote-2f/ec_kb3310b.h from everywhere. This commits move it from lemote-2f/ec_kb3310b.h to include/asm/mach-loongson64/. Signed-off-by: Yifeng Li --- .../lemote-2f => include/asm/mach-loongson64}/ec_kb3310b.h | 0 arch/mips/loongson64/lemote-2f/ec_kb3310b.c | 2 +- arch/mips/loongson64/lemote-2f/reset.c | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename arch/mips/{loongson64/lemote-2f => include/asm/mach-loongson64}/ec_kb3310b.h (100%) diff --git a/arch/mips/loongson64/lemote-2f/ec_kb3310b.h b/arch/mips/include/asm/mach-loongson64/ec_kb3310b.h similarity index 100% rename from arch/mips/loongson64/lemote-2f/ec_kb3310b.h rename to arch/mips/include/asm/mach-loongson64/ec_kb3310b.h diff --git a/arch/mips/loongson64/lemote-2f/ec_kb3310b.c b/arch/mips/loongson64/lemote-2f/ec_kb3310b.c index 321822997e76..6e416d55b42a 100644 --- a/arch/mips/loongson64/lemote-2f/ec_kb3310b.c +++ b/arch/mips/loongson64/lemote-2f/ec_kb3310b.c @@ -15,7 +15,7 @@ #include #include -#include "ec_kb3310b.h" +#include static DEFINE_SPINLOCK(index_access_lock); static DEFINE_SPINLOCK(port_access_lock); diff --git a/arch/mips/loongson64/lemote-2f/reset.c b/arch/mips/loongson64/lemote-2f/reset.c index a26ca7fcd7e0..6c615c7b08d0 100644 --- a/arch/mips/loongson64/lemote-2f/reset.c +++ b/arch/mips/loongson64/lemote-2f/reset.c @@ -20,7 +20,7 @@ #include #include -#include "ec_kb3310b.h" +#include static void reset_cpu(void) {