From patchwork Tue Sep 25 09:03:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 147412 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp472857lji; Tue, 25 Sep 2018 02:04:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Vg2tvFJrUrZ04gJjMiJvzZq98nrYzXcOz6Dz19FSVGeNlJL6sfrauZGmt7EWupV+jMC38 X-Received: by 2002:a63:6746:: with SMTP id b67-v6mr89548pgc.310.1537866272459; Tue, 25 Sep 2018 02:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537866272; cv=none; d=google.com; s=arc-20160816; b=dsZzeK/1xHSLEdVSfAwOMTw6cGLKT672JAY4drv9ycn74hbRYlqhVa2FGW8fcJBeoy JftMXUURo73t2aUqZD7sZxX4ilMPPFktlfngIJaT11caPJEU8NtUqVVycGlspeRNzSbs 0VqpaGebIs6lh4ZOZVYKeEmfQ/eXxwob959Ghnb85QGLH1Vddc/GmNopfAEUUqutzcDG 0Ca3YwjT1uoa4Nkj3NzE+OLjrPUUroPklZZYSHCLP7zwRmNAYNpbqWHQ79+j0VjhjTBG IO0TaY3kkWXcADUwJRRnsST+wmQmW+9W7orrWnijQ7A7CT5PH82dVkBwGfskwkfuNZWu nM1Q== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=twKUT5AkgFgWw/t/b6bDn1W7sM2Rq3ji9heE8FRQKeo=; b=Ymy3YEjBEbyM9HW6CzEyeNnUrBjRFtqCyF++F3ESbcfzFan8+2vxl5ucZt6thcmGNs +EDDnSWeo8NIkRPWMYRR4rzc6gvF/TSm8MHz7w0GaGYzB5e/APYUeBZq8MhjxN3RoIz4 TgSLfB50a/IFZ+lYwhOnuCV+/nyNae7AhgFxzpRYQmN3tDwum7fAKKU3frEsh2Y46njg 9Gqntgf/KH+vCXYx5G5dIdncwTSZwf5RjW0KmrOxVVCe/fkg0Fkqxhgjz2aAAi5X8zU0 cRUHLLt4M0z1QGS9D9apwK/NrwzVnj/B4ne4q2R8QQ2YAnKhP8bFvlraZKJW1bxvgWcH AxCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bwrASE8S; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si1696321pfj.244.2018.09.25.02.04.32; Tue, 25 Sep 2018 02:04:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=bwrASE8S; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 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 S1726927AbeIYPLC (ORCPT + 10 others); Tue, 25 Sep 2018 11:11:02 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44198 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbeIYPLC (ORCPT ); Tue, 25 Sep 2018 11:11:02 -0400 Received: by mail-wr1-f67.google.com with SMTP id v16-v6so22463242wro.11 for ; Tue, 25 Sep 2018 02:04:29 -0700 (PDT) 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; bh=twKUT5AkgFgWw/t/b6bDn1W7sM2Rq3ji9heE8FRQKeo=; b=bwrASE8SJsryrgfQp4OcrgICX1ooVdFQ8ivP+hUg1MrkP2Piwfyyl56tQV7tpvs4vJ J2dxuWJ4Ixf9xZgYy09bXWorJ6l0ku8qJ5Kq7fPRKZN6n9ORds4a0M1+v5yEniW1APBH y/DKqJudolhwzSHhpJTNylGgZSsOgYIq3GBuM= 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; bh=twKUT5AkgFgWw/t/b6bDn1W7sM2Rq3ji9heE8FRQKeo=; b=A+rf5hSj5I2B5g/U8iZ9nScIlKQjvCnGhWL30j4ZW6pvYIkn3eKKq5Tv5NGQbwcVBJ 33PkFtAnC1Mc7E+mQu3+BcR5rpVeRwoZm1lMAMtlEpXqQW0rGJvvliArXnHyqc/7nur1 doH7D19/sfj+3+aaPghc5XXtgqlAyqs0j791GENgd6Wioou0om3lyd33niNrRCYbNpFn vpx1gZd9bUctjCEypZWsgbZ9fA+G8ItobEnjFHANqX4cZiuU6wI5Met5CvOUZiN2gsNa 9jcMZB4o8RJoBBNpRoHg1rhzw0wIGKpx1xX7Gz5gaI0db9ZZgxH1m/28efBGXKIGwRPj KT0g== X-Gm-Message-State: ABuFfog01Vriqbdcz8hQtgzMuAuhqo9CDyfef7i3IliO7N0bBtDhRkXi jyPFwZTS+ff8zclczW5wFtJdMA== X-Received: by 2002:a5d:4185:: with SMTP id m5-v6mr97633wrp.8.1537866268768; Tue, 25 Sep 2018 02:04:28 -0700 (PDT) Received: from localhost.localdomain (251.150.136.77.rev.sfr.net. [77.136.150.251]) by smtp.gmail.com with ESMTPSA id y206-v6sm1523828wmg.14.2018.09.25.02.04.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Sep 2018 02:04:28 -0700 (PDT) From: Daniel Lezcano To: edubezval@gmail.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, daniel.lezcano@linaro.org, leo.yan@linaro.org, Zhang Rui Subject: [PATCH 07/14] thermal/drivers/hisi: Replace macro name with relevant sensor location Date: Tue, 25 Sep 2018 11:03:05 +0200 Message-Id: <1537866192-12320-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> References: <1537866192-12320-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Change the macro name in order to give a better indication of the sensor location. Signed-off-by: Daniel Lezcano --- drivers/thermal/hisi_thermal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index a5756f6..a542cb3 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -55,8 +55,8 @@ #define HI3660_TEMP_STEP (205) #define HI3660_TEMP_LAG (4000) -#define HI6220_DEFAULT_SENSOR 2 -#define HI3660_DEFAULT_SENSOR 1 +#define HI6220_CLUSTER0_SENSOR 2 +#define HI3660_BIG_SENSOR 1 struct hisi_thermal_data; @@ -406,7 +406,7 @@ static int hi6220_thermal_probe(struct hisi_thermal_data *data) if (!data->sensor) return -ENOMEM; - data->sensor[0].id = HI6220_DEFAULT_SENSOR; + data->sensor[0].id = HI6220_CLUSTER0_SENSOR; data->sensor[0].data = data; data->nr_sensors = 1; @@ -422,7 +422,7 @@ static int hi3660_thermal_probe(struct hisi_thermal_data *data) if (!data->sensor) return -ENOMEM; - data->sensor[0].id = HI3660_DEFAULT_SENSOR; + data->sensor[0].id = HI3660_BIG_SENSOR; data->sensor[0].data = data; data->nr_sensors = 1;