From patchwork Mon Nov 2 17:49:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 320353 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3922745ilc; Mon, 2 Nov 2020 09:50:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1L9bxVbIGcupASP6KPRbg88dOf8PtbqyZ2gk80imzW83+uRnCJXOpQ+Vdowt5DgahE7m9 X-Received: by 2002:a50:de45:: with SMTP id a5mr7776781edl.91.1604339420099; Mon, 02 Nov 2020 09:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604339420; cv=none; d=google.com; s=arc-20160816; b=rv8T9ozbfAcYwlIoA1bKZ2LSP4gkiUsCc9hWJ0BPcTHN5Uqq/7WfKGOavdjG/H0oWO K+ay6LPTYJZD7hrD1N9FmR/IZmVqXekkOsUGjxsvghB9/GSzXKj3WZjWA/vdBD/MiTPt luNhdyb+bFselLGJ6sCOKnIxyaoUU/flGyo4d6C9C5mPOnFS8gn45rvWMc5m7mgQlwp8 E7eDAS/0NhN7apphfG4FQHPVdhbKRvfIuhe0m17qvZgx+0OaeOCcShYt8lKAP5If8L9k 5SMoTn6VNEww4OaQcyEeqPb4/bDZaIG1DBFmz6o+6lLkPZ/jDGTFeD9Nz5aVWJ85dMxb /sxA== 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=MLJDam9YZO/BSJWiAfTXxsDL90ZL6TSe3ltuj59sqKE=; b=vpLXueut2VL1BMo9E3vHYjHkw9B3f1IoXK4M7xP3dmxXPUcLKUMLExPMP+oo0M8PnD CGVlROBfoChr8I7iNQ/VdZrp8Em63qBPHGqh0G4BtZi1uVo/W71ahtionJhitzza5xAt QQs1BKiBCQAc+ZkfaE8hA9vcfR8aj1HSs6UZ8PwHGsXascFhwAzDSbV8On62QK9wUnY/ 8pq9A/Ea6FMzKLFWKaHQKyavSh8vnL/FVhiAiwRLDAfspEqT7v1BB9sZymm+fGbuz2+x n226S70uo67Gs/8HFHP0eqtnd8Q401c0UPLjqnFB+Fuya4pieHd3+W8kXPJDf4lL6aCi HUgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gcv1H0AT; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 e2si11572092edc.604.2020.11.02.09.50.19; Mon, 02 Nov 2020 09:50:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=gcv1H0AT; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1726140AbgKBRuS (ORCPT + 9 others); Mon, 2 Nov 2020 12:50:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgKBRuS (ORCPT ); Mon, 2 Nov 2020 12:50:18 -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 0AB74C061A47 for ; Mon, 2 Nov 2020 09:50:18 -0800 (PST) Received: by mail-lj1-x243.google.com with SMTP id 2so15940398ljj.13 for ; Mon, 02 Nov 2020 09:50:17 -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=MLJDam9YZO/BSJWiAfTXxsDL90ZL6TSe3ltuj59sqKE=; b=gcv1H0AT8pLx0snIkNFAlm42XQi1jNl+YXSfpukI1uB9plErCnxobO84/Qchq7NabP y4jOzLK4wAJ4goe5kQfGF+Pv1kiV3MA63Ty8cCRhUlNlm4IBtxRJ+oakZltPr9m8pj94 3W9d64NmfHrK3Q3U0oHECAKlkzwOm61m/7UKngsMU3P9bLEwuuYjCUXKpXOK4PveMBQA izRTndXIwj3XIjj+pOmF3VDA4IDrREqcKb2eyfNYO6N0iSAM3cIql9sTlq3IWO9Se0tz IsydvxbuUaPj6f1FY6uGSDn4mhMvG6mwsNgAZsH5DpzEougE3yuN7V98kIubGo5JFzJp 5FBQ== 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=MLJDam9YZO/BSJWiAfTXxsDL90ZL6TSe3ltuj59sqKE=; b=YIuOM0SBt5Kn+zqokPPfpcjiOKDByhXTXcz3DK9pIkLk2V7Po2DxAZPMbrhtaH+5Ty ytPgw9OndpW0FEeJBvunhl3mcSPv1kAmozh94slpxznFes/wa8oIO56TsVFyFDF9DAPt I/SuI4e81bylHPMnyv3iRoM7knNp+0hCTs7vnq+K+cyAA4mp3VAIi9O7mkdaN7FgphdV OyZzhf4ub7vWuVfnN1uaigzvs+QpVV/DqiJX/Y/vfNCrb6bss8SAj76tVk5mJkYhMOet hzLztgKo1c0mz6c1IoOBpsM3a7CMIAbjM3YLdR8vsv91r2I+7KIhzTwVjAe+MTolqetl MWFQ== X-Gm-Message-State: AOAM532Eenyn+/gkqEwclAlwUC766WeqQvN8DbwmO59U8mOAHDzSxL9s fZ3Y/RMuyffKY4prSZCE5NVV5g== X-Received: by 2002:a05:651c:101:: with SMTP id a1mr6573873ljb.451.1604339416547; Mon, 02 Nov 2020 09:50:16 -0800 (PST) Received: from eriador.lan ([94.25.229.254]) by smtp.gmail.com with ESMTPSA id r7sm2516163lfc.206.2020.11.02.09.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 09:50:15 -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 v9 08/15] iio: adc: move vadc_map_pt from header to the source file Date: Mon, 2 Nov 2020 20:49:43 +0300 Message-Id: <20201102174950.1148498-9-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201102174950.1148498-1-dmitry.baryshkov@linaro.org> References: <20201102174950.1148498-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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.28.0 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