From patchwork Fri Dec 4 02:54:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 337709 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp818553ilb; Thu, 3 Dec 2020 18:58:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQ95g6XgDUPuvgvhcxXWrGdqF3Sjo4xfHsOnhl9W8/cEmfHaBxKin8aTPAm2Y0LYcd3hiX X-Received: by 2002:a17:906:451:: with SMTP id e17mr5081392eja.228.1607050698095; Thu, 03 Dec 2020 18:58:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607050698; cv=none; d=google.com; s=arc-20160816; b=Dwa4+UX5ip6/0lmmEmCmTbqtBAsSq8DO2/O4opkSnIuTNrMbaZU2TO5ipDLCgmvUOG zcXsux4AHZEAjjTwkwZu/BDsdt9vcs5tSeeakh/PTy0sgZTdsTTx2WJNGmmkguhFas2D p/WaJSyfqcDljDVyJGoaCJVaRHgTnUJTCH6CIKgf4q68uALKYbv9Zyqu8GKrgxUC4Dte cIl9WHDCRSuL9+wXehL0leUC3LAyo8+rseCEbLNcCsXzXtmICMhQiEVegrhs+khnIku0 7FTBO3A7l3I+YQ4pCjdu8CDBQs9Pnw7g/AI3JD1gvOKRkAWonJNJRD+H0WlZ7KvOEgK3 4z7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TbaxkWpjDpXPcM4gWvdtbC6B2mUw4BwoNFySwAXVJoY=; b=cef8PNQl4HDAT7BzvScCQbpfB3vh2Zk0srKwfIUGdoMBBrwazqLfw5SujTUDyUyZGR a86Q+k7wpMSN/Af4uv7lSfW9HlInHzvqkFVKa7f5vKMnBtroAFuAbXal4YVk4OMozIpo 9PHDWq/h1OCLkEVO/MNXqKZVBKc0zT6tQ0LYkw2mKa4wRs97GI4ZBxqlZzy6NrRiun5h rqpSCUaC/kvH9ONhvaKBl12zSyU4c36SQThN3NgsyyDlXaLax5UkOKQn/Yhiqxts/o+f cH8CFKq64NxGnJqxpgieNTmzGm/j8+mskvR2mQN4RT6uSG+U9ai08LrTGzTJwKaRME6r TRNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MUN2KlBK; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i19si558396ejr.557.2020.12.03.18.58.17; Thu, 03 Dec 2020 18:58:18 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MUN2KlBK; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727016AbgLDC5A (ORCPT + 6 others); Thu, 3 Dec 2020 21:57:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726780AbgLDC47 (ORCPT ); Thu, 3 Dec 2020 21:56:59 -0500 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7508C09424A for ; Thu, 3 Dec 2020 18:55:28 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id z1so4933439ljn.4 for ; Thu, 03 Dec 2020 18:55:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TbaxkWpjDpXPcM4gWvdtbC6B2mUw4BwoNFySwAXVJoY=; b=MUN2KlBKwE/ZFqcY6YY86naBlLvOWN/xB4JONLIIXntfi+nuLMqGUvMP3ZyL9i0CHM m4I685Cov7CYlu60rF2y5QfcOP4s5UlgfT0Aoqn0esvFA0Of4e8XpKRue7b1Nd/nWj44 3I3mNLhjCIpYwLqwwwc/nwm1GgTcToH2DDRY+F6ZJb7v/Zf5aYzHIdrSV8rut7iFmAv1 LxIxWheiNQ0jY4JZfQeXptOvjgbQ+iOr9lpOwlK1g21QMw1oty9vXnAg6dSDHOg+PHn/ CMvfQfkzltMhwLhmLy3Ij/zKeUWsWlakKgnKMg4godjpee7XwteUqY4bvNwvXCA2c6D3 ErkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TbaxkWpjDpXPcM4gWvdtbC6B2mUw4BwoNFySwAXVJoY=; b=QG0Z8t1vR5uenkMq9QUwwnoKhpfOmCXdmWJ4gfi5P9ai7Nmgyp2/2L0CXsA6G2q+LH SBpM+MCKRShG0hZfgZEruQRXs+ZnpeLK3F7X4ihdgnamj9elaMb9U9+4KGlk+qvF7117 ejQPMsdinCh6FmNLUuovyd/y7lJqt8erdeKlaBpA1NM+dGtAcV+hcdQtY1Zix7NDbAlJ Vo9a07A5Jd+SK3GJmqOrAgxZbhXIH0Ttj/qH3NQKIr2YbudL/xwcC5NKqbWs+9A3jIMl TeLM9D1kn7MaqVrVbzD1PQnRFxOep9UzoUZXOlSiZoMdhR1EiXdtR9tn66QoeFF4cc2q 64/w== X-Gm-Message-State: AOAM531BXzDe7Dgx2o71iKJYTKG5JPK4GXgSET4O6lfdXMU1uopwA7sP V912syUooSG+9eitw6xdKCEI9A== X-Received: by 2002:a2e:9743:: with SMTP id f3mr209897ljj.110.1607050527226; Thu, 03 Dec 2020 18:55:27 -0800 (PST) Received: from eriador.lumag.spb.ru ([188.162.64.117]) by smtp.gmail.com with ESMTPSA id b8sm1131667ljo.68.2020.12.03.18.55.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 18:55:26 -0800 (PST) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Zhang Rui , Daniel Lezcano , Amit Kucheria , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, Manivannan Sadhasivam , Jishnu Prakash Subject: [PATCH v10 05/15] iio: adc: move qcom-vadc-common.h to include dir Date: Fri, 4 Dec 2020 05:54:59 +0300 Message-Id: <20201204025509.1075506-6-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201204025509.1075506-1-dmitry.baryshkov@linaro.org> References: <20201204025509.1075506-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org qcom-vadc-common module will be used by ADC thermal monitoring driver, so move it to global include dir. Signed-off-by: Dmitry Baryshkov --- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 3 +-- drivers/iio/adc/qcom-spmi-adc5.c | 2 +- drivers/iio/adc/qcom-spmi-vadc.c | 3 +-- drivers/iio/adc/qcom-vadc-common.c | 3 +-- {drivers => include/linux}/iio/adc/qcom-vadc-common.h | 2 ++ 5 files changed, 6 insertions(+), 7 deletions(-) rename {drivers => include/linux}/iio/adc/qcom-vadc-common.h (99%) -- 2.29.2 diff --git a/drivers/iio/adc/qcom-pm8xxx-xoadc.c b/drivers/iio/adc/qcom-pm8xxx-xoadc.c index 7e108da7d255..0610bf254771 100644 --- a/drivers/iio/adc/qcom-pm8xxx-xoadc.c +++ b/drivers/iio/adc/qcom-pm8xxx-xoadc.c @@ -10,6 +10,7 @@ * Author: Linus Walleij */ +#include #include #include #include @@ -21,8 +22,6 @@ #include #include -#include "qcom-vadc-common.h" - /* * Definitions for the "user processor" registers lifted from the v3.4 * Qualcomm tree. Their kernel has two out-of-tree drivers for the ADC: diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index c2da8f068b87..b10a0fcf09dc 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -19,7 +20,6 @@ #include #include -#include "qcom-vadc-common.h" #define ADC5_USR_REVISION1 0x0 #define ADC5_USR_STATUS1 0x8 diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c index b0388f8a69f4..05ff948372b3 100644 --- a/drivers/iio/adc/qcom-spmi-vadc.c +++ b/drivers/iio/adc/qcom-spmi-vadc.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -20,8 +21,6 @@ #include -#include "qcom-vadc-common.h" - /* VADC register and bit definitions */ #define VADC_REVISION2 0x1 #define VADC_REVISION2_SUPPORTED_VADC 1 diff --git a/drivers/iio/adc/qcom-vadc-common.c b/drivers/iio/adc/qcom-vadc-common.c index 40d77b3af1bb..ee94774b72e6 100644 --- a/drivers/iio/adc/qcom-vadc-common.c +++ b/drivers/iio/adc/qcom-vadc-common.c @@ -3,14 +3,13 @@ #include #include #include +#include #include #include #include #include #include -#include "qcom-vadc-common.h" - /* Voltage to temperature */ static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = { {1758, -40}, diff --git a/drivers/iio/adc/qcom-vadc-common.h b/include/linux/iio/adc/qcom-vadc-common.h similarity index 99% rename from drivers/iio/adc/qcom-vadc-common.h rename to include/linux/iio/adc/qcom-vadc-common.h index 7e5f6428e311..03a9119edc71 100644 --- a/drivers/iio/adc/qcom-vadc-common.h +++ b/include/linux/iio/adc/qcom-vadc-common.h @@ -6,6 +6,8 @@ #ifndef QCOM_VADC_COMMON_H #define QCOM_VADC_COMMON_H +#include + #define VADC_CONV_TIME_MIN_US 2000 #define VADC_CONV_TIME_MAX_US 2100