From patchwork Fri Dec 4 02:55:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 337712 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp818584ilb; Thu, 3 Dec 2020 18:58:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0/i8dLBKdECHLOWZxnjzEoLbj3tJLPyreZoVuUdlJvwuNF/7a2wvziqq70X4XeX87erUC X-Received: by 2002:aa7:d545:: with SMTP id u5mr5520133edr.113.1607050701024; Thu, 03 Dec 2020 18:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607050701; cv=none; d=google.com; s=arc-20160816; b=c6dJrBy+4ahQsNTJtJJWz4xRl+jX3gPtaRZiVwNi6Fn8XmQ3pbr3CKoTXyeekzn8HW kc3DgYE0hxvageL9h0OOYVCLwoG2TfvQkHh9XTd2AYP8aesQY+zWXwFcIN9i14z84C9L ykcTgmX+zUOhSo2nmW4qfbYp3Rj5+R6IrhZxYK+agEKB/8R0iP3V+uDBLcZfN0Tzcr+3 RUQQz4LCnlE3UeVQu2OIIidJtQS+ZwLSdvmrgokvj3j3PzJTqTZSOB++Mk8WO4ZNABIh 0eyD0B2nsI74rRaiUgUP0a2u7On80MsrjJud6Fonmt/Z9Rvvpvu7W7wpoTq+hLK2YB8M /d4Q== 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=TWDLud9pksRg9HazTAZv15V734bI01T2Ycit6ziYb2Y=; b=H3XrbdUdQ3IfAzw7ASmGjJLBcSz0sLMVlTfNUGgRH3qhmnc7u+DBYbDfttKpCczlo+ vGbnSz1nY04KpBDy6Cnlz5JZr/AU1Ts7qfDpB+kxmEFRyQ7vjOA6OyRaKym4CfQ5At7D HaPjaae+022BXcTyoy8SZl/K0d4H8asMD0YcvjBL81uA6mmHuQKK8u7h05HCDCCtXjWr LYH8h3sWy3wEAUa91F0Vggbdo8lc87QQRGBnuQ6yuOE2Bm0wmjng5HZ208E4x0F1DXuV ufccefLyIvaeZT4p6+qhP6D9Yfv1jZK3vtDS7lmiMXkucraz89Nngj8sLecviZ/QbBNz ZIPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LWgQGT9g; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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.20; Thu, 03 Dec 2020 18:58:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=LWgQGT9g; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727186AbgLDC5N (ORCPT + 15 others); Thu, 3 Dec 2020 21:57:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727179AbgLDC5M (ORCPT ); Thu, 3 Dec 2020 21:57:12 -0500 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5467DC094255 for ; Thu, 3 Dec 2020 18:55:36 -0800 (PST) Received: by mail-lf1-x144.google.com with SMTP id j205so5713404lfj.6 for ; Thu, 03 Dec 2020 18:55:36 -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=TWDLud9pksRg9HazTAZv15V734bI01T2Ycit6ziYb2Y=; b=LWgQGT9gwFAhiUltNIB3UaJlXzNe24yhRqXaSgwz9KmOyj9dMStWph5NO/Ay9L7Sfz YOugXj1f3n3H7CiDk3629wNruxOE+QUMRxgd0QA1Q5uRocA9ncPWJhp843AwO0d30DEs NfACj5Ki62es8b7B3Y3jUIA/eprunRWuySkzqqxc5cKMrvGXAbg27OKixruCfbVnX20r DdJRURWDMPCLle/4WSvrOM58qF4RZYxdtj4QZbqxUB7JXA+aQvhId6OtmRZ6YWC5Ogek hDKZ+IiXj4lWIur1AZt1uXHpGONpRvbXlnBpYpoO6yZddnVF/FxBYiNjWigwGKycuYsk 8fWg== 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=TWDLud9pksRg9HazTAZv15V734bI01T2Ycit6ziYb2Y=; b=CcSbeyNkQjju++t3LdK0iQCJ4bxSxBB6J0SqJ5FfyU+7v+udI+hiaQ8TCYzCcpBkSJ VmP12nSJFx1rosOkIaztFRVPazPRVAJBUblGd5bH4d1Jf4x1wgMxDbLxqUuaeY9fRtf8 vvKRacgAcoyj+y4ZLCN/xyTuUtEnBelnfZQOM7W8wJfB5yLsGjnt3JyQLSSx9CETgBQD Ps+yiafTiAMA+soLp2DNl3XOfQ7dNR73hcwUcqDqsS3gOFTM9/ABVjaChyo6nEitbQGR IA254ttmp1/CcbWAn0cwDDe0NGjJ0Vi0ChKy+4R2nlbLYfgeSCu73I596Ist9N74EjyP OqRg== X-Gm-Message-State: AOAM5324TS1c/GwaUrJPuuNX3tMYdAnwH+/EpAKaiT+lh5n1xGu5yZUx pUPce3CUtI7TRGfJATXLbLEmFQ== X-Received: by 2002:a05:6512:3453:: with SMTP id j19mr2446184lfr.182.1607050534867; Thu, 03 Dec 2020 18:55:34 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 18:55:34 -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 08/15] iio: adc: move vadc_map_pt from header to the source file Date: Fri, 4 Dec 2020 05:55:02 +0300 Message-Id: <20201204025509.1075506-9-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: linux-arm-msm@vger.kernel.org struct vadc_map_pt is not used outside of qcom-vadc-common.c, so move it there from the global header file. Signed-off-by: Dmitry Baryshkov --- drivers/iio/adc/qcom-vadc-common.c | 11 +++++++++++ include/linux/iio/adc/qcom-vadc-common.h | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) -- 2.29.2 diff --git a/drivers/iio/adc/qcom-vadc-common.c b/drivers/iio/adc/qcom-vadc-common.c index ee94774b72e6..45a38602f66a 100644 --- a/drivers/iio/adc/qcom-vadc-common.c +++ b/drivers/iio/adc/qcom-vadc-common.c @@ -10,6 +10,17 @@ #include #include +/** + * struct vadc_map_pt - Map the graph representation for ADC channel + * @x: Represent the ADC digitized code. + * @y: Represent the physical data which can be temperature, voltage, + * resistance. + */ +struct vadc_map_pt { + s32 x; + s32 y; +}; + /* Voltage to temperature */ static const struct vadc_map_pt adcmap_100k_104ef_104fb[] = { {1758, -40}, diff --git a/include/linux/iio/adc/qcom-vadc-common.h b/include/linux/iio/adc/qcom-vadc-common.h index 03a9119edc71..1d337dd9e3dc 100644 --- a/include/linux/iio/adc/qcom-vadc-common.h +++ b/include/linux/iio/adc/qcom-vadc-common.h @@ -59,17 +59,6 @@ #define DIE_TEMP_ADC7_SCALE_FACTOR 1000 #define DIE_TEMP_ADC7_MAX 160000 -/** - * struct vadc_map_pt - Map the graph representation for ADC channel - * @x: Represent the ADC digitized code. - * @y: Represent the physical data which can be temperature, voltage, - * resistance. - */ -struct vadc_map_pt { - s32 x; - s32 y; -}; - /* * VADC_CALIB_ABSOLUTE: uses the 625mV and 1.25V as reference channels. * VADC_CALIB_RATIOMETRIC: uses the reference voltage (1.8V) and GND for