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: 10613721 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DF9AC15E8 for ; Tue, 25 Sep 2018 09:04:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1F382836F for ; Tue, 25 Sep 2018 09:04:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C60A129307; Tue, 25 Sep 2018 09:04:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AA2F2836F for ; Tue, 25 Sep 2018 09:04:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726927AbeIYPLC (ORCPT ); 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-Google-Smtp-Source: ACcGV61fzTmdR4BPLrmgBB61wZJaUvDg22lvoj0ZJSjQXUZ5up4w/aemDRqx6zCaR0n2k0YA1gXJUg== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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;