Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp569128img; Thu, 28 Feb 2019 04:28:13 -0800 (PST) X-Google-Smtp-Source: AHgI3IaYuvr5ezS3e9Rem/fw4dHeE+VdKANaQtP32p7TclJiOZwPG8VFFIPbfM2XQlsMG78I9md+ X-Received: by 2002:a17:902:ea8c:: with SMTP id cv12mr7563565plb.123.1551356893912; Thu, 28 Feb 2019 04:28:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551356893; cv=none; d=google.com; s=arc-20160816; b=hL023VvsoAwuTP1C52FbG7MKNDGpRMlJMKJMVRoRIeODDNaUCyFerpdpGNypik87as AA9RJKUnLGqtui+U7rX+EvciDYuvQeFA5WFx04FSbbkTwg+Yjxa3bfumGyPh6p8r5Zwn Kcn3iyR08eHW78pZLbivCSJwtJMn+ZXF22QsExICManQO8oVOF9Ce8i3D191uuW2QsSc f2KTYjB8NYxvIgHNYzBAl9B6mwjO+032eRu6Z6G9VuxkvwxeqcuH5LWHNDkv70Fkj9lv J8JvV6emjMrG0XhkSTmIoVwy8Lt45pDXYbj3bmiz+Nbdf9/ZO99DY05U7qGGPTkWZU+m VF2Q== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=zy0Ocp2xe2rob5f0FFseaWF46iQU7ldkZ5vVgEtDGww=; b=UuePVjsuOdy0fsy7lswbM2fak1O436KFzC96HpuuXPgHuGr60d/tpfCyTdAl4ImpHp MhcvxTlgZrLlySj16uDKGVW68nkHr8hkS+aSYdiSxLVZRXyHSwgOpO4rGaqi3ZtKS4yN 3+qgaIbhWRrDXhJzJGPNV6lPlmFYsQiMLsA5P+mDPfbGoGYcZTmM6hT+beJglpe+2aIu OdwwRlPbgTHbXstAfXPa4KG0+O+7PfGoHWlt0KWNtmAbDL1Avf8pV4GWoca7MkORjXy8 PYewK5dDTaTGeBEbMDjUk5CFomasMXgCrhD0k9s/StO+hRHx0eU5CRE0YRG6PiX0kvc/ 6gvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YhXnH/Tu"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b66si18103245pfj.106.2019.02.28.04.27.58; Thu, 28 Feb 2019 04:28:13 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b="YhXnH/Tu"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731627AbfB1MVq (ORCPT + 99 others); Thu, 28 Feb 2019 07:21:46 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:39392 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731600AbfB1MVo (ORCPT ); Thu, 28 Feb 2019 07:21:44 -0500 Received: by mail-wm1-f68.google.com with SMTP id z84so8720301wmg.4 for ; Thu, 28 Feb 2019 04:21:43 -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 :in-reply-to:references; bh=zy0Ocp2xe2rob5f0FFseaWF46iQU7ldkZ5vVgEtDGww=; b=YhXnH/Tu/A4AckJvgc67KJixvqSw/SmjzG2Oib3OL9KFw7jswdw+ZtPb5zT0DHbU9c 23kCfJhIYI2xhqNXVpJzUd5+KDOAyy1LBkL4fvFTBhoKpuaCrwGlNW9L82+GC0FHrXnG n2+VGL9UguTZ8EIG0iMGPCNmwlVYBBisELEUYrfx/+PtyiqcAp/9FvdeHvs9Q/2FCSH7 /adxczFppCzGEEg5rh3YfuRsZEPhS3eTlcOndo5uElEpkI5B68TQjLtgW+0XvAZXZ5aI Cy1jQewzRoCwqhPFeuLfFlopcwceqeVr1yDqxUZ2OhrWSdovEtvFIsw/pDlcZa1xnNXn nzhQ== 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:in-reply-to:references; bh=zy0Ocp2xe2rob5f0FFseaWF46iQU7ldkZ5vVgEtDGww=; b=pFFXMR4BrNQEXXvfqetmxAhtC2aVok271j8oebWHYT5ixbWMDhalQC0D/OhPATJCMQ W0EL8+oFU2Ca4U5dW0byc4dP6Ayz9ZgeNwb70R4KKS1fE/oaowt6UOyCQtUk6F7f24v1 H7bMa4akg5RWDDEOyKfvA1hM9qkqut5ZGI3zQdRcjujM2c7pahOb/I83qLjh9FDgZSuu 5UbV/piCRCi0tX7pATA25EvrYkJsqgotpc0SBMCxp2e7h3WJWoh37V2dLZ7dhViKeaMB +qm3fRBtXpfGKF42hOqszlSj4DFZ/7l/EGtd7NNCzFqr5UexvhO71y2ne41BnEsJqDe+ Tpmw== X-Gm-Message-State: APjAAAV9a83M2aL2jafIZPbE7FjWCGlXjDAzUs3wPqlN8oR1SajeV2GM xIRQ1W1peDUF/dYrRCtW2xKFSL5yISc= X-Received: by 2002:a1c:a688:: with SMTP id p130mr2925081wme.53.1551356502172; Thu, 28 Feb 2019 04:21:42 -0800 (PST) Received: from localhost ([49.248.54.130]) by smtp.gmail.com with ESMTPSA id d21sm52650758wrc.44.2019.02.28.04.21.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 04:21:41 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, andy.gross@linaro.org, Daniel Lezcano , David Brown , Zhang Rui Cc: linux-pm@vger.kernel.org Subject: [PATCH v2 02/24] drivers: thermal: tsens: Rename tsens_data Date: Thu, 28 Feb 2019 17:50:52 +0530 Message-Id: <8daf93badafc5adfe0e9ea18b7382e9d6de6c719.1551355503.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rename to tsens_plat_data to denote that it is platform-data passed in at compile-time. Signed-off-by: Amit Kucheria --- drivers/thermal/qcom/tsens-8916.c | 2 +- drivers/thermal/qcom/tsens-8960.c | 2 +- drivers/thermal/qcom/tsens-8974.c | 2 +- drivers/thermal/qcom/tsens-v2.c | 4 ++-- drivers/thermal/qcom/tsens.c | 2 +- drivers/thermal/qcom/tsens.h | 8 ++++---- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8916.c b/drivers/thermal/qcom/tsens-8916.c index c6dd620ac029..66edcfca1526 100644 --- a/drivers/thermal/qcom/tsens-8916.c +++ b/drivers/thermal/qcom/tsens-8916.c @@ -97,7 +97,7 @@ static const struct tsens_ops ops_8916 = { .get_temp = get_temp_common, }; -const struct tsens_data data_8916 = { +const struct tsens_plat_data data_8916 = { .num_sensors = 5, .ops = &ops_8916, .reg_offsets = { [SROT_CTRL_OFFSET] = 0x0 }, diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/thermal/qcom/tsens-8960.c index 0f0adb302a7b..f3c3820e6e8e 100644 --- a/drivers/thermal/qcom/tsens-8960.c +++ b/drivers/thermal/qcom/tsens-8960.c @@ -277,7 +277,7 @@ static const struct tsens_ops ops_8960 = { .resume = resume_8960, }; -const struct tsens_data data_8960 = { +const struct tsens_plat_data data_8960 = { .num_sensors = 11, .ops = &ops_8960, }; diff --git a/drivers/thermal/qcom/tsens-8974.c b/drivers/thermal/qcom/tsens-8974.c index 3d3fda3d731b..5023f20afc14 100644 --- a/drivers/thermal/qcom/tsens-8974.c +++ b/drivers/thermal/qcom/tsens-8974.c @@ -229,7 +229,7 @@ static const struct tsens_ops ops_8974 = { .get_temp = get_temp_common, }; -const struct tsens_data data_8974 = { +const struct tsens_plat_data data_8974 = { .num_sensors = 11, .ops = &ops_8974, .reg_offsets = { [SROT_CTRL_OFFSET] = 0x0 }, diff --git a/drivers/thermal/qcom/tsens-v2.c b/drivers/thermal/qcom/tsens-v2.c index 381a212872bf..cc98a61e093b 100644 --- a/drivers/thermal/qcom/tsens-v2.c +++ b/drivers/thermal/qcom/tsens-v2.c @@ -66,13 +66,13 @@ static const struct tsens_ops ops_generic_v2 = { .get_temp = get_temp_tsens_v2, }; -const struct tsens_data data_tsens_v2 = { +const struct tsens_plat_data data_tsens_v2 = { .ops = &ops_generic_v2, .reg_offsets = { [SROT_CTRL_OFFSET] = 0x4 }, }; /* Kept around for backward compatibility with old msm8996.dtsi */ -const struct tsens_data data_8996 = { +const struct tsens_plat_data data_8996 = { .num_sensors = 13, .ops = &ops_generic_v2, .reg_offsets = { [SROT_CTRL_OFFSET] = 0x4 }, diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index f1ec9bbe4717..065ec2189bd3 100644 --- a/drivers/thermal/qcom/tsens.c +++ b/drivers/thermal/qcom/tsens.c @@ -102,7 +102,7 @@ static int tsens_probe(struct platform_device *pdev) struct device *dev; struct device_node *np; struct tsens_device *tmdev; - const struct tsens_data *data; + const struct tsens_plat_data *data; const struct of_device_id *id; u32 num_sensors; diff --git a/drivers/thermal/qcom/tsens.h b/drivers/thermal/qcom/tsens.h index 89318523c848..232376c690cc 100644 --- a/drivers/thermal/qcom/tsens.h +++ b/drivers/thermal/qcom/tsens.h @@ -65,13 +65,13 @@ enum reg_list { }; /** - * struct tsens_data - tsens platform data + * struct tsens_plat_data - tsens compile-time platform data * @num_sensors: Number of sensors supported by platform * @ops: operations the tsens instance supports * @hw_ids: Subset of sensors ids supported by platform, if not the first n * @reg_offsets: Register offsets for commonly used registers */ -struct tsens_data { +struct tsens_plat_data { const u32 num_sensors; const struct tsens_ops *ops; const u16 reg_offsets[REG_ARRAY_SIZE]; @@ -117,8 +117,8 @@ int init_common(struct tsens_device *); int get_temp_common(struct tsens_device *, int, int *); /* TSENS v1 targets */ -extern const struct tsens_data data_8916, data_8974, data_8960; +extern const struct tsens_plat_data data_8916, data_8974, data_8960; /* TSENS v2 targets */ -extern const struct tsens_data data_8996, data_tsens_v2; +extern const struct tsens_plat_data data_8996, data_tsens_v2; #endif /* __QCOM_TSENS_H__ */ -- 2.17.1