Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp1376424imk; Mon, 4 Jul 2022 01:38:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1thMHmQ30OmO1P8pzrcB6PoVTRQsv4radP0lWbJ2cXT6UP/xCnbnIFwI0zoQIcj2l5zXTbo X-Received: by 2002:a17:907:2bc5:b0:72a:a019:104a with SMTP id gv5-20020a1709072bc500b0072aa019104amr11909425ejc.509.1656923934036; Mon, 04 Jul 2022 01:38:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656923934; cv=none; d=google.com; s=arc-20160816; b=emYgMr7gd05DfRLJ14OhXe4BO+VsUVpPP9rO8wVxnxhvG5bKhDO2X+TedU0oohg3Hi WiZAp2LD4llqp3Dd7EB3/j+r387J16jDgbjSEg7vyvcnBgxMTsNhIiwaZBN7E2jScfpW sv+zQCpcDrYd9niOleCgsFjeEk6TVSku3FGor0ZJOQ3cS7Zy73P9knSWcj3G64AT8WNA FNe8XIC9iE3FudeG3iLD546s/cCHU/oHCXuDmdAFSqWbdiGF9CN1XqP7Oawnkue5s8Uj ucOEtxCQfj1CNRT4Dlb3hK6B++ruUh43m6syKlX/YM/jZEacODQodR/23LVn5iSZukCp UKyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=DvY9F93Qq4AIMrxkIr1yR1vjaLB1qH6y6VVELgL9XVs=; b=WMWFbFoPbCbO+bpZL35XU3reX/015ar38TjrIF7eLDtcOvOYdAHExpMaZzftyLcpSq OTQmmyxGVXsGupd8bsv1CMaCHbL+1sgF4TK6LCWw+FOhk4Fnue0YEq7sUXNaXWal6TcS UdXHBTAu78kBmKZq1/VVEaEHAHeF/0a5KjmaxA5W3JRkEDCdgw0QjhzeTil6J3oRLyge llNpX0M2ruVU5ZN2Cend9xFV9ei4qGUdCDb3VQ0hm/YlD9TFfyPhBrR8WpLv20IwQMnU as7FtGeRt4QHNMIqkjcpVTUdSEYdiC8qOSNA0Zlq1S4xNpD4YRzXy5L3cGS+VSzulU+j 9G6w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020aa7d68b000000b0043a4b4ba0ccsi2973377edr.175.2022.07.04.01.38.30; Mon, 04 Jul 2022 01:38:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231871AbiGDIYx (ORCPT + 99 others); Mon, 4 Jul 2022 04:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232951AbiGDIYt (ORCPT ); Mon, 4 Jul 2022 04:24:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 91B9865C5; Mon, 4 Jul 2022 01:24:47 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A7CAE23A; Mon, 4 Jul 2022 01:24:47 -0700 (PDT) Received: from [192.168.33.14] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C55A3F792; Mon, 4 Jul 2022 01:24:45 -0700 (PDT) Message-ID: <4ad311e5-62e1-d06b-7c5e-315ed923b5a5@arm.com> Date: Mon, 4 Jul 2022 09:24:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v3 07/12] thermal/core: Rename trips to ntrips Content-Language: en-US To: 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 , Zhang Rui , Thierry Reding , Jonathan Hunter , Dmitry Osipenko , "open list:TEGRA ARCHITECTURE SUPPORT" , rafael@kernel.org References: <20220703183059.4133659-1-daniel.lezcano@linexp.org> <20220703183059.4133659-8-daniel.lezcano@linexp.org> From: Lukasz Luba In-Reply-To: <20220703183059.4133659-8-daniel.lezcano@linexp.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 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?