Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7323978rdb; Wed, 3 Jan 2024 11:48:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHX/lxxCFRrqGOAkTiAH82tG13gHtPN2mzNg2WP825iyGt6sTEOAYBCMDDsw3EOPcPnXrkU X-Received: by 2002:a05:6a20:3218:b0:18c:328b:61db with SMTP id hl24-20020a056a20321800b0018c328b61dbmr8586140pzc.1.1704311281976; Wed, 03 Jan 2024 11:48:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704311281; cv=none; d=google.com; s=arc-20160816; b=S5vRv28LkwZhddr0rPLgxTi5ASaz0Vycj6khqSmm23bEB9aI9JIGiWC/wbOWNFTGtS Hidgf64OOWlzIFBwfIS5OCLnDMO4YpXFUGUl00t7hHa93kt0x/FTwla28o552w+LMz4v RE1pkZ2M2NhxPMczmO05UioEUYp8D0l6Fsu0uK66NnIZgmstbXPUcjrgmTKQ9kScYfx5 ACO/4oFoyXnhoreyEU9Nmo9oNew0pxKsWZsadkfJGeVAtBEDzSfBCtRjmtTHetUzXdOu hf6jlW8YjlS28iB9Evotr9IliPI4cpjmKtcK7uGH91BXy3eqI+yF/t/QllxGkMlKJclC jLzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=2xYBSULfGbrZuQlxOmhWkgMD9XbiKkeMs3LeWM6d/+o=; fh=AGD9leioVtbCCVejw34V/zC5QhrfLvlTHaR9pWPPh3A=; b=JyPSCukKmwsr75VM/+YXLQHYlC3qGHHKYcDRL4H4U/4RY/ne+LQfIyrpyOUl1wyYQk zZXRXNiPMvUndE8RRSREK39PPE1cOn4mYTrrp/mSea8MqYz80/Ktbslt1Mei+RIktw2i 6gXlS8BjwX5sqqEyGkGCpTGPFdP8x3kjD17WQOogMagdq8MP3uQqM+3iknvKf4cLjQgI JxlR3PaUdGuuk7ZrMYxSZoDkjGbaPyqVIe9mp5fgxrN+ayLmXHax8BBY1B/1aAgq8DYj XKS5Q6HsYbTmecqIxnUvUgnfl2yjo7ufCL1qvu0eCs2SfPzrqzrPv0c9P9n7LjkXDiL5 m7Nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id cj22-20020a056a00299600b006d9b67267e8si16526844pfb.211.2024.01.03.11.48.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 11:48:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-15933-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15933-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AF741B23892 for ; Wed, 3 Jan 2024 19:47:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 739921CF9C; Wed, 3 Jan 2024 19:47:00 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E94EA1CF81; Wed, 3 Jan 2024 19:46:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 C9CBBC15; Wed, 3 Jan 2024 11:47:41 -0800 (PST) Received: from [10.57.85.107] (unknown [10.57.85.107]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C75563F7A6; Wed, 3 Jan 2024 11:46:54 -0800 (PST) Message-ID: <3ae22159-3230-4b53-a390-c7fda21da00c@arm.com> Date: Wed, 3 Jan 2024 19:48:11 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/6] thermal: trip: Constify thermal zone argument of thermal_zone_trip_id() Content-Language: en-US To: "Rafael J. Wysocki" Cc: Linux PM , Srinivas Pandruvada , Daniel Lezcano , Zhang Rui , Linux ACPI , LKML References: <4556052.LvFx2qVVIh@kreacher> <1896687.tdWV9SEqCh@kreacher> From: Lukasz Luba In-Reply-To: <1896687.tdWV9SEqCh@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/15/23 19:53, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Because thermal_zone_trip_id() does not update the thermal zone object > passed to it, its pointer argument representing the thermal zone can be > const, so adjust its definition accordingly. > > No functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/thermal/thermal_core.h | 2 +- > drivers/thermal/thermal_trip.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > Index: linux-pm/drivers/thermal/thermal_core.h > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_core.h > +++ linux-pm/drivers/thermal/thermal_core.h > @@ -120,7 +120,7 @@ void __thermal_zone_device_update(struct > for (__trip = __tz->trips; __trip - __tz->trips < __tz->num_trips; __trip++) > > void __thermal_zone_set_trips(struct thermal_zone_device *tz); > -int thermal_zone_trip_id(struct thermal_zone_device *tz, > +int thermal_zone_trip_id(const struct thermal_zone_device *tz, > const struct thermal_trip *trip); > void thermal_zone_trip_updated(struct thermal_zone_device *tz, > const struct thermal_trip *trip); > Index: linux-pm/drivers/thermal/thermal_trip.c > =================================================================== > --- linux-pm.orig/drivers/thermal/thermal_trip.c > +++ linux-pm/drivers/thermal/thermal_trip.c > @@ -143,7 +143,7 @@ int thermal_zone_get_trip(struct thermal > } > EXPORT_SYMBOL_GPL(thermal_zone_get_trip); > > -int thermal_zone_trip_id(struct thermal_zone_device *tz, > +int thermal_zone_trip_id(const struct thermal_zone_device *tz, > const struct thermal_trip *trip) > { > /* > > > LGTM, Reviewed-by: Lukasz Luba