From patchwork Tue Mar 13 21:23:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 10280847 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 ED346602BD for ; Tue, 13 Mar 2018 21:23:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF2542239C for ; Tue, 13 Mar 2018 21:23:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DCFAE2852B; Tue, 13 Mar 2018 21:23: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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 32D3B2239C for ; Tue, 13 Mar 2018 21:23:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752515AbeCMVXj (ORCPT ); Tue, 13 Mar 2018 17:23:39 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:46018 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbeCMVXi (ORCPT ); Tue, 13 Mar 2018 17:23:38 -0400 Received: by mail-pl0-f66.google.com with SMTP id v9-v6so535062plp.12 for ; Tue, 13 Mar 2018 14:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=bvYiD2AbmR3BM2PGmlMMDKPBQTOU0xXxBcbDNFkNAJs=; b=ez5R3uTwY5Hzr+gxVWG+ryAfp9YZASS7U1BuZ1au3DWbijK6gb0C49P4S6lQUv8w2p T25crKCyKomjdAytqiKYJHF7UhrReVD9+TJPxEb7JXZ1GPi96IIpVJjV1mQr2HXmwLli fbK9HsjDVKxkNg9GhuIN22aRf1/38neDQSpD8Bs/s49ZZgPdZwRIoAv1T+Gc/vhYsYLh i8d5TCG6Hk6diIi+C0lyvrZ7uup4id6U5zcaHPg/a0k0J6Ox5EvOLJF0ZBSncMRu8jRd zS21L4U3fqw9iEVt6RbHbk7v6hHNC9XBu1qyTE8UDdedXCiN7PeeK8N2npVzgPopZ/cf 0Qrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=bvYiD2AbmR3BM2PGmlMMDKPBQTOU0xXxBcbDNFkNAJs=; b=qWE8ERotMa4jXK8bN8qubZOU6jZXjJm+uiP8UrvgsOl5SneEy793FsQ5XyteJfIZNs QSfW2TnnoPFHyCt7G3AACHZKeAVDyMoTjEULaoTAZm4uyoyx/Wm14SJo3/6DBNUNGPvU iP04jhgG/I7F274Cc7spbleNQ29Fp7KwdeTO3wYxqHtAo4YR372s9dhXBfslGSFq1EwA QWvZHIjHLiVkJRSE+AvXV8YqGje6za606UQU8+LGJHgv5mJ0P9bwh7nWj4qFmNXAt1ln Yf45/DfYz09OzIqp5yej/bIVkZgaxaFrC4xePVSh3wddtl/LYzlAdC2qYTESaFnN4U5L r3SA== X-Gm-Message-State: AElRT7EjEP8P0g3DoR88onmVtXpfncc7jXX/YP1+HKVB2fQ886/5Eoog /cYcM71UCINUpiNwiGSPr4Bnjg== X-Google-Smtp-Source: AG47ELvZzXvmRZNEtOXVpFr5ebHQkFt1XkydboWdbuLBY2DGS5TPCg5U34FJfqFZFiyBRG0KSIF1AQ== X-Received: by 2002:a17:902:aa91:: with SMTP id d17-v6mr1843505plr.145.1520976217555; Tue, 13 Mar 2018 14:23:37 -0700 (PDT) Received: from gwendal.mtv.corp.google.com ([172.22.102.126]) by smtp.gmail.com with ESMTPSA id w5sm305216pfw.137.2018.03.13.14.23.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Mar 2018 14:23:36 -0700 (PDT) From: Gwendal Grignou To: jic23@kernel.org, lars@metafoo.de, paolocretaro@gmail.com, enric.balletbo@collabora.com Cc: linux-iio@vger.kernel.org Subject: [PATCH] iio: cros_ec: Move cros_ec_sensors_core.h in /include Date: Tue, 13 Mar 2018 14:23:28 -0700 Message-Id: <20180313212328.129640-1-gwendal@chromium.org> X-Mailer: git-send-email 2.16.2.660.g709887971b-goog Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Similar to other common iio frameworks, move cros_ec_sensors_core.h from drivers/iio/common/cros_ec_sensors/ to include/linux/iio/common. Signed-off-by: Gwendal Grignou --- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 3 +-- drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c | 3 +-- drivers/iio/light/cros_ec_light_prox.c | 3 +-- drivers/iio/pressure/cros_ec_baro.c | 3 +-- .../linux/iio/common}/cros_ec_sensors_core.h | 2 ++ 5 files changed, 6 insertions(+), 8 deletions(-) rename {drivers/iio/common/cros_ec_sensors => include/linux/iio/common}/cros_ec_sensors_core.h (99%) diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c index 7d30c59da3e2..8e3f99a8b30c 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -31,8 +32,6 @@ #include #include -#include "cros_ec_sensors_core.h" - #define CROS_EC_SENSORS_MAX_CHANNELS 4 /* State data for ec_sensors iio driver. */ diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c index 416cae5ebbd0..ea3268bd92f4 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c +++ b/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -27,8 +28,6 @@ #include #include -#include "cros_ec_sensors_core.h" - static char *cros_ec_loc[] = { [MOTIONSENSE_LOC_BASE] = "base", [MOTIONSENSE_LOC_LID] = "lid", diff --git a/drivers/iio/light/cros_ec_light_prox.c b/drivers/iio/light/cros_ec_light_prox.c index acfad4aeb27a..15bd105b08f3 100644 --- a/drivers/iio/light/cros_ec_light_prox.c +++ b/drivers/iio/light/cros_ec_light_prox.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -29,8 +30,6 @@ #include #include -#include "../common/cros_ec_sensors/cros_ec_sensors_core.h" - /* * We only represent one entry for light or proximity. EC is merging different * light sensors to return the what the eye would see. For proximity, we diff --git a/drivers/iio/pressure/cros_ec_baro.c b/drivers/iio/pressure/cros_ec_baro.c index 4599fde4dd25..87c07af9181f 100644 --- a/drivers/iio/pressure/cros_ec_baro.c +++ b/drivers/iio/pressure/cros_ec_baro.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -28,8 +29,6 @@ #include #include -#include "../common/cros_ec_sensors/cros_ec_sensors_core.h" - /* * One channel for pressure, the other for timestamp. */ diff --git a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h b/include/linux/iio/common/cros_ec_sensors_core.h similarity index 99% rename from drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h rename to include/linux/iio/common/cros_ec_sensors_core.h index 8bc2ca3c2e2e..a6701827a773 100644 --- a/drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.h +++ b/include/linux/iio/common/cros_ec_sensors_core.h @@ -16,7 +16,9 @@ #ifndef __CROS_EC_SENSORS_CORE_H #define __CROS_EC_SENSORS_CORE_H +#include #include +#include enum { CROS_EC_SENSOR_X,