Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp188808imw; Mon, 4 Jul 2022 07:28:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s41ZcLX2zSuXkwDYWDjVwhONN3cMeqkVZ85Hwdd5XzTYhIUL8e8WqW+L4dtS4z9ThYRrhZ X-Received: by 2002:a05:6402:c92:b0:43a:7177:5be7 with SMTP id cm18-20020a0564020c9200b0043a71775be7mr1138745edb.224.1656944891205; Mon, 04 Jul 2022 07:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656944891; cv=none; d=google.com; s=arc-20160816; b=BkNoIXP8tirb6FlY0E2iDW0j/Bz1OOjfFlmsDaalf6v9c2Lo1SCQsHrp0K+3RcDnAa cqj3+/pZNdvarFIeyugMEuBKfONK+dM5isE2/BpjXlEJF4uS8QdYNt/kFqSRLsPuDPB5 9QLVuUggbY2BGGRe5WisVYD4z/n061g99NCoTZnE7qLkyHExzyyViWk2gv8A54rmKATK MhKedP9hck86MEMUKo8NXEKR5Mk1lqJUPnzf8xyHeolPvVEKg+EoCPjP3vhbEnH+MMni fdWw+Hpko/y/VgoM1RF2PZXOJjwmk3M4shGFo7WzG5dohIrbfLi6EV0xhYc7EXfRNobw m9kA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=tnuiqJTHiyP4rA/gg1PdCucrBxdZniB9t0RHy8ygNOs=; b=CPxub/nvv9I9ipYeeOppbM0PH1ZJ80tJJVitHcFPNQVH28LeSbColbJhWQZlyU2W8f loGYfUn2/suIFJyiYZ7CCesGVAIcNJXcA2vK8euMSD9dz5rh4DyIcqt43Emoein+TAvO PEBZsI9uHPOeyyJnwSL88bFeoYWPj1G0tWMWzYk1jQJNsYLnKWuqhOCD5QhcN14K0YIK SeudurQxURf94bWVGHUOcArLfGQ6yHiFt+Mosu4QRVRVmHtNVe5tuqRuM3ESWN94n65B yRyF7a/RPg7SSiE8gnCHRcfJsiQDALE0YQubVJ2hD1AnSHQMdt3ZCnAHsoWPPaJXd1Zv GjzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZusTjEx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e10-20020a17090658ca00b00722dd000decsi16526226ejs.663.2022.07.04.07.27.44; Mon, 04 Jul 2022 07:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ZusTjEx/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234346AbiGDORx (ORCPT + 99 others); Mon, 4 Jul 2022 10:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbiGDOR2 (ORCPT ); Mon, 4 Jul 2022 10:17:28 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68BAEB85B; Mon, 4 Jul 2022 07:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656944247; x=1688480247; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=BBZYtapvFnPY20DGygY2cUcUMOKUbHJ8PjVBtFJUlyI=; b=ZusTjEx/usoXFCs1wWADprN7IyJRpgq2bzjB/uJsVeFccSBJESY1JDrH mvnFS4+XrTRdl+6lKGpAC89HjTldAVG4jNAGipHoIDuiD2uzzjwCbOZAc U45GXMCDy81ZZowW3uGG8/Rj94dmXtyV1ejPwzbqeqhCwkuoUcsEP9CJE R/gt49xMny5TgTyI8Y2WNdqMYt3P1jcuw83z6nxVuJpbNTC8VnsYHMK/Y GAgdd6MNrlZvgfkVPTbDOuSCnE68bXZoULZFvRmM5XUGFOxck6QLzHUZA lg4y5M4ihSvSbSuWsOHqe0Cm9futwPm5MlQGvhAnqC/hUshyyTIO8omzW A==; X-IronPort-AV: E=McAfee;i="6400,9594,10397"; a="308675987" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="308675987" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 07:17:27 -0700 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="590088160" Received: from bbao3-mobl1.ccr.corp.intel.com ([10.249.173.150]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 07:17:23 -0700 Message-ID: Subject: Re: [PATCH v3 07/12] thermal/core: Rename trips to ntrips From: Zhang Rui To: Lukasz Luba , Daniel Lezcano , daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, abailon@baylibre.com, Amit Kucheria , Thierry Reding , Jonathan Hunter , Dmitry Osipenko , "open list:TEGRA ARCHITECTURE SUPPORT" , rafael@kernel.org Date: Mon, 04 Jul 2022 22:17:21 +0800 In-Reply-To: <4ad311e5-62e1-d06b-7c5e-315ed923b5a5@arm.com> References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-8-daniel.lezcano@linexp.org> <4ad311e5-62e1-d06b-7c5e-315ed923b5a5@arm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2022-07-04 at 09:24 +0100, Lukasz Luba wrote: > > On 7/3/22 19:30, Daniel Lezcano wrote: > > In order to use thermal trips defined in the thermal structure, > > rename > > the 'trips' field to 'ntrips' to have the 'trips' field containing > > the > > thermal trip points. > > > > Cc: Alexandre Bailon > > Cc: Kevin Hilman > > Cc; Eduardo Valentin > > Signed-off-by: Daniel Lezcano > > --- > > drivers/thermal/gov_fair_share.c | 6 +++--- > > drivers/thermal/gov_power_allocator.c | 4 ++-- > > drivers/thermal/tegra/tegra30-tsensor.c | 2 +- > > drivers/thermal/thermal_core.c | 20 ++++++++++---------- > > drivers/thermal/thermal_helpers.c | 4 ++-- > > drivers/thermal/thermal_netlink.c | 2 +- > > drivers/thermal/thermal_sysfs.c | 22 +++++++++++--------- > > -- > > include/linux/thermal.h | 2 +- > > 8 files changed, 31 insertions(+), 31 deletions(-) > > > [snip] > > > diff --git a/include/linux/thermal.h b/include/linux/thermal.h > > index 6289b0bb1c97..3a57878a2a6c 100644 > > --- a/include/linux/thermal.h > > +++ b/include/linux/thermal.h > > Missing updated ne name in comment here: > * @trips: number of trip points the thermal zone supports > > > > @@ -165,7 +165,7 @@ struct thermal_zone_device { > > struct thermal_attr *trip_hyst_attrs; > > enum thermal_device_mode mode; > > void *devdata; > > - int trips; > > + int ntrips; > > unsigned long trips_disabled; /* bitmap for disabled > > trips */ > > unsigned long passive_delay_jiffies; > > unsigned long polling_delay_jiffies; > > Maybe this is only my bias, but this new name 'ntrips' looks > like negation in electronics. > > We have examples like: num_cpus, num_pins, num_leds, num_groups, > num_locks, num_buffers, num_phys, etc... > > Could we have 'num_trips' and follow to this convention here as well? > I'd vote for "num_trips". :) -rui