Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp700537imm; Wed, 18 Jul 2018 09:10:57 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeuXbfFn12re6IWva4xsY3nSwRxytwUb+Y/YKLKXIjWbKd2Qc0rpHJRiAvMPCgkBDmT7J+t X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr6131547pga.181.1531930257800; Wed, 18 Jul 2018 09:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531930257; cv=none; d=google.com; s=arc-20160816; b=q5Rxgf67rF9rQjNc2kjWPrnlNJ+WfDfEWhChYSKvSaabjTn2QbKq+0M+uslPPg2tIv Hk4sFsWBSGVfghwyi0Eq+uNIxOy7hNnMHjdYSfCX0m5kDk5B+BoXNokj5FEsbWrfhAAn CxU+ginP2UT1KCQfGduFgFYpiUqJ25FUeWW/Hm9d/DstAgJFfYQ8uqOtQfy4IGA/tszk OwjVXyqiSqytCF8buio7XX6P+WjRyhANOkFn0d3ivEyyqn/Sb+kKGm4h+U2Cj+79kANg tPLtkw6T8z4UdgPiJEnwu8Ss26W6+fIon1UA+dDF0AsaFDJnx69ics3wY3r0bS6SlnWF O+gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=SYpWi2B62JCY8Zp6wL0toiHwCNL6H6Nc7MOKZmYk3Ko=; b=HqeM40uF731YRIPYiYvrDjxpKmvX75UDY9ou4PB1FBY+xGJi9OGu6pZVjXLkJ9Rker o7KrqZBD9vxNP/p/Pb0nzyEEpKt8Si3rdr0mViJNFAKXXinCi9WEyQ8rhUQhu3uvRScj x0186u4ncAyI463UL/g+AON7X1Et8VXFeEB6DesdeuZximNTYjPnG5Dk9XC7DfTtDuI6 HAX5xWtp79axhurouBJWl+UWRqBXbX/TNM4sE95XzCA7e/hBWTyGkcD8zy54LfnEwVA/ olgBYQ4U4/r2HNUJLP4phARYHkdxBhCpAjTmjMXaly2H1M34KG3sXV2dGkz3ooY/1nES 1FIA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si3532871pge.404.2018.07.18.09.10.41; Wed, 18 Jul 2018 09:10:57 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731228AbeGRQsm (ORCPT + 99 others); Wed, 18 Jul 2018 12:48:42 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:32784 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730433AbeGRQsm (ORCPT ); Wed, 18 Jul 2018 12:48:42 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E4BE027DFDB From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: groeck@chromium.org, bleung@chromium.org, kernel@collabora.com, lee.jones@linaro.org, Olof Johansson Subject: [PATCH 1/2] platform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. Date: Wed, 18 Jul 2018 18:09:55 +0200 Message-Id: <20180718160956.19864-2-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180718160956.19864-1-enric.balletbo@collabora.com> References: <20180718160956.19864-1-enric.balletbo@collabora.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cros-ec-lpc driver lives in drivers/platform because is platform specific, however there are two includes (cros_ec_lpc_mec.h and cros_ec_lpc_reg.h) that lives in include/linux/mfd. These two includes are only used for the platform driver and are not really related to the MFD subsystem, so move the includes from include/linux/mfd to drivers/platform/chrome. Signed-off-by: Enric Balletbo i Serra --- drivers/platform/chrome/cros_ec_lpc.c | 3 ++- drivers/platform/chrome/cros_ec_lpc_mec.c | 3 ++- .../linux/mfd => drivers/platform/chrome}/cros_ec_lpc_mec.h | 6 +++--- drivers/platform/chrome/cros_ec_lpc_reg.c | 3 ++- .../linux/mfd => drivers/platform/chrome}/cros_ec_lpc_reg.h | 6 +++--- 5 files changed, 12 insertions(+), 9 deletions(-) rename {include/linux/mfd => drivers/platform/chrome}/cros_ec_lpc_mec.h (96%) rename {include/linux/mfd => drivers/platform/chrome}/cros_ec_lpc_reg.h (94%) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index 31c8b8c49e45..7ec8789bf161 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -27,12 +27,13 @@ #include #include #include -#include #include #include #include #include +#include "cros_ec_lpc_reg.h" + #define DRV_NAME "cros_ec_lpcs" #define ACPI_DRV_NAME "GOOG0004" diff --git a/drivers/platform/chrome/cros_ec_lpc_mec.c b/drivers/platform/chrome/cros_ec_lpc_mec.c index 2eda2c2fc210..c4edfa83e493 100644 --- a/drivers/platform/chrome/cros_ec_lpc_mec.c +++ b/drivers/platform/chrome/cros_ec_lpc_mec.c @@ -24,10 +24,11 @@ #include #include #include -#include #include #include +#include "cros_ec_lpc_mec.h" + /* * This mutex must be held while accessing the EMI unit. We can't rely on the * EC mutex because memmap data may be accessed without it being held. diff --git a/include/linux/mfd/cros_ec_lpc_mec.h b/drivers/platform/chrome/cros_ec_lpc_mec.h similarity index 96% rename from include/linux/mfd/cros_ec_lpc_mec.h rename to drivers/platform/chrome/cros_ec_lpc_mec.h index 176496ddc66c..105068c0e919 100644 --- a/include/linux/mfd/cros_ec_lpc_mec.h +++ b/drivers/platform/chrome/cros_ec_lpc_mec.h @@ -21,8 +21,8 @@ * expensive. */ -#ifndef __LINUX_MFD_CROS_EC_MEC_H -#define __LINUX_MFD_CROS_EC_MEC_H +#ifndef __CROS_EC_LPC_MEC_H +#define __CROS_EC_LPC_MEC_H #include @@ -87,4 +87,4 @@ void cros_ec_lpc_mec_destroy(void); u8 cros_ec_lpc_io_bytes_mec(enum cros_ec_lpc_mec_io_type io_type, unsigned int offset, unsigned int length, u8 *buf); -#endif /* __LINUX_MFD_CROS_EC_MEC_H */ +#endif /* __CROS_EC_LPC_MEC_H */ diff --git a/drivers/platform/chrome/cros_ec_lpc_reg.c b/drivers/platform/chrome/cros_ec_lpc_reg.c index dcc7a3e30604..fc23d535c404 100644 --- a/drivers/platform/chrome/cros_ec_lpc_reg.c +++ b/drivers/platform/chrome/cros_ec_lpc_reg.c @@ -24,7 +24,8 @@ #include #include #include -#include + +#include "cros_ec_lpc_mec.h" static u8 lpc_read_bytes(unsigned int offset, unsigned int length, u8 *dest) { diff --git a/include/linux/mfd/cros_ec_lpc_reg.h b/drivers/platform/chrome/cros_ec_lpc_reg.h similarity index 94% rename from include/linux/mfd/cros_ec_lpc_reg.h rename to drivers/platform/chrome/cros_ec_lpc_reg.h index 5560bef63c2b..1c12c38b306a 100644 --- a/include/linux/mfd/cros_ec_lpc_reg.h +++ b/drivers/platform/chrome/cros_ec_lpc_reg.h @@ -21,8 +21,8 @@ * expensive. */ -#ifndef __LINUX_MFD_CROS_EC_REG_H -#define __LINUX_MFD_CROS_EC_REG_H +#ifndef __CROS_EC_LPC_REG_H +#define __CROS_EC_LPC_REG_H /** * cros_ec_lpc_read_bytes - Read bytes from a given LPC-mapped address. @@ -58,4 +58,4 @@ void cros_ec_lpc_reg_init(void); */ void cros_ec_lpc_reg_destroy(void); -#endif /* __LINUX_MFD_CROS_EC_REG_H */ +#endif /* __CROS_EC_LPC_REG_H */ -- 2.18.0