From patchwork Wed Feb 14 12:48:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 200942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1186754dyb; Wed, 14 Feb 2024 04:50:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbe82YeYLWN1cQw4OSSP3tBZIY+PgIQ+BmLCdzTLXb+yyUXi5Erj+ujwv2OoXt37Mzbn+3/rFjvNHUhu7zBr4RkiMl6A== X-Google-Smtp-Source: AGHT+IGbvHPIrzWAprXZJMDeFTQSKYsEqEtrc87yXLlStNcq+F/Wlhn7sClXoYrNqRElVWypXojj X-Received: by 2002:a05:622a:2d6:b0:42c:7037:4f02 with SMTP id a22-20020a05622a02d600b0042c70374f02mr2596413qtx.53.1707915047197; Wed, 14 Feb 2024 04:50:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707915047; cv=pass; d=google.com; s=arc-20160816; b=n0dmV2ErGYt7nO+jEIpbmPX+2gJhq/Cm6ocXgMorflzvzXASUkKthIFID1ttsrq0tS mFSLM/CpKaz0Mf4awIhGfTWvigY1VqZr3JzzLgHYyltDgiLZMKo1IpOl9IqgLdfoRTjr TPvzjNKWocHlvZBh5Da8ugBR7l5w7xDKIQnERqDfdpexDhEgKXv8S0QPlpddKiPA21E/ nm016oPWo+qyxgv7KXvbQ2Y8hfTzpMI4Db42AmZcPLpSqOngpY2H6HqyZHDVbCRs/85P Ngqmg69yR2nGR9VC+GnxY4ywYHIcv88pVVb/lzUzTAdYp/2iYqYeKt6zpCh0vcWIkXlj VIbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=z2m20k/l1U6wDvo55Kv5ZPzJ1c4W2L9HgRsaJFwJado=; fh=mL0zJ4DfB9JXOfNKVSgwO6wr2i/51GvDaFD59k5Pkcg=; b=UUkeQ1PxthaBSpYtZKttcWQivF1UwgE2l97Dfeilu3Y/WSEdWYwcJi4MUPtcdHpkA2 kX3KMSCoi3oJZHd3hSfyJnWPHDqe24aik0/j+4uEE76F7yg+XqOomjMJiXxvgM9YSd9i Napa8fZKgrKI4ZNny4sYwumHUWH/Q+H1q1T6mn5u+ERS/33V2ugLFeVFoaQj8GgBbRuz IcoG7uUdbk4iiIaAuasK0FN/t8nmP2phnwvLrRfxgIaskRRv6AyYnykQ3OIC5Pvto+iF q8N0W720UrPyg9I6OPwf/w6zTYQTW3rc2rDi033A7iWKVePC0/mQditzcYdQ8GUjU3zU Sq0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-65212-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65212-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVvcZ7hLxOPaYfjm2jVUWoTb47dIEs2qQI5x2E9oVYBoYQm78ClJoSEa9NcJ/1YC6DmJQBi4expDd3Vgt64WRqha8GvNg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 16-20020ac85750000000b0042c6b54bff2si5512813qtx.426.2024.02.14.04.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:50:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65212-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-65212-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65212-ouuuleilei=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 66CB31C21C13 for ; Wed, 14 Feb 2024 12:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 021ED535A3; Wed, 14 Feb 2024 12:50:07 +0000 (UTC) Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CBE4352F6D; Wed, 14 Feb 2024 12:50:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915005; cv=none; b=k2uUm9par7v1TQbHxbQ5RY4RL8scmHhGP9BKq18FuRnLBYbazYJPqAzVS7/d9zcayewpni6yXrx7B4rXmx1uG24qLL2JZazronN7KsXcMUUqv+B16c00hC8R/CSdUE5ixChNn3EjyOHg1eW4F286AsZUoc8PBEByk5sBk9KT4BI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707915005; c=relaxed/simple; bh=I5fEFYQhaHQyljtvj0e+0/ehCmqsqbtUCsJyrH6AmLM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WLo+Y6AqRsg+W3blJYMjjYeZjVRGyGipbw1cUAoJv3/4+3e2A2e46NI8WV1NHxlqbzBm8kPoqgTDewNR9sCMh85ZZVuaLe+OnAis8G49d5+iFE5M20VLNutNe9F2vNsEcYqVnwKlV8ROhxCCzqRFvA1rD7Tovzv4444R4ZbhiAA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.4.0) id a060be3b8950e4e4; Wed, 14 Feb 2024 13:49:55 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 84EA6669DB7; Wed, 14 Feb 2024 13:49:54 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: Daniel Lezcano , LKML , Linux ACPI , Lukasz Luba , Zhang Rui , Srinivas Pandruvada , Stanislaw Gruszka , AngeloGioacchino Del Regno , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Subject: [PATCH v2 5/6] thermal: ACPI: Constify acpi_thermal_zone_ops Date: Wed, 14 Feb 2024 13:48:34 +0100 Message-ID: <3552599.iIbC2pHGDl@kreacher> In-Reply-To: <4551531.LvFx2qVVIh@kreacher> References: <4551531.LvFx2qVVIh@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrudejgdeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopedugedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghp thhtoheplhhukhgrshiirdhluhgsrgesrghrmhdrtghomhdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=14 Fuz1=14 Fuz2=14 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790878728249927184 X-GMAIL-MSGID: 1790878728249927184 From: Rafael J. Wysocki Because thermal zone operations are now stored directly in struct thermal_zone_device, acpi_thermal_zone_ops need not be modified by the thermal core and so it can be const. Adjust the code accordingly. No functional impact. Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano --- v1 -> v2: No changes. --- drivers/acpi/thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-pm/drivers/acpi/thermal.c =================================================================== --- linux-pm.orig/drivers/acpi/thermal.c +++ linux-pm/drivers/acpi/thermal.c @@ -620,7 +620,7 @@ acpi_thermal_unbind_cooling_device(struc return acpi_thermal_bind_unbind_cdev(thermal, cdev, false); } -static struct thermal_zone_device_ops acpi_thermal_zone_ops = { +static const struct thermal_zone_device_ops acpi_thermal_zone_ops = { .bind = acpi_thermal_bind_cooling_device, .unbind = acpi_thermal_unbind_cooling_device, .get_temp = thermal_get_temp,