Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1556193imj; Sun, 10 Feb 2019 05:10:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZvqY2Cwgr0ffkZsEoDR30eMsIOkiQvfq6xdLjJVQymZPvxF8sPS5Mjn1eajCPesafSERe8 X-Received: by 2002:a62:2c4d:: with SMTP id s74mr31735867pfs.6.1549804210190; Sun, 10 Feb 2019 05:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549804210; cv=none; d=google.com; s=arc-20160816; b=1CSjEIJgRC6J7KosYKWe8Rz3GSbxxs5y2GQ+4tgEPkb4vD4r7dUx6CHCUuMbqkPm16 YYb8ZZZVlZYzx/upq0MZYSS147bJjTGCzWnm3O66h3YbMNQKvLQv6hnkhRvs+P2ZWNCj l5D+Dl2hxglmOF1ITNg2rcVsmm1/lnlake/Pq0hFHObxkPqZlWpXvlsrK4a/ZczJXZWK Ecg9jFEKrKugSiwspCEzXeNFukog2H7fmf7eFMij5wlA3fgz1sA62kA2Og07ZaaB+vH9 Ea2lBwQhART8R/PACNm7O4OtHgmPD/5ofjk0IZ9MOaN+rKHvG5nfrxAQ6ZjrKXBedQdS t6eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b4cQp878IN929PG107Tbimvr0Vij5yHqmUBZ1fWRe6w=; b=XeS+qWv0yXdkFZNrcdt4MbhRQfsTph+qYD1nj/lZuhaKysCOnpbGY6IS9e5PNITLtZ wOVKsRLilNs4mSUMKZh14tKgrZaGFvU3AKEc2yCpKb96nA8Tp5E2LWxuiCU6ckNhtLdL zC0IEdWAx96B69RdoVL099vPzKNGDGvYUPkeanwQ3/C1QMx336WAmjDUJ5jQOzSg+lkc ale50A6RC8QduE7BX/LCDbp89X9rTxW0TnKAxp3CbMzb2PrqwDgdFw3nYDiB0aFxh1y+ 4ThhlguvRuxyG0ZtbxkM28yK8mSmrVFFeq1SXWelP5B1JPIdIuBEofTnHM3QkxcSEMpo /ILw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=HeWKcGOR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 145si3971241pfu.218.2019.02.10.05.09.54; Sun, 10 Feb 2019 05:10:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tomli.me header.s=1490979754 header.b=HeWKcGOR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tomli.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726819AbfBJNGj (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.20.1