Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp541820rdh; Wed, 14 Feb 2024 04:50:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUJAw/DhoZpVSP2bot+laapVDP/KKGqT0ZKsqc5ElNclDQuQ40L32cHqZscTg13M5zMY8tQyVcZdU7KtvzpFOZ7wd0YlzKa1xlP8Op3qg== X-Google-Smtp-Source: AGHT+IGhMxFO2N+S8NVHt4nwfricIXgqD5punC8oO5L4sQ3p6A7pNzpiyVWXR3UU/GLR0BhxtuE1 X-Received: by 2002:a17:906:f897:b0:a3d:25e3:d455 with SMTP id lg23-20020a170906f89700b00a3d25e3d455mr1646516ejb.43.1707915024143; Wed, 14 Feb 2024 04:50:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707915024; cv=pass; d=google.com; s=arc-20160816; b=aI+lH/GnN18gLQaXJ8Z6KvxOyQOkMBjj8nKsCHqOuq3wtM3TiGZFDa8E24JrfKLkPM o7KXk5Lfv6rjSYku1CdjC7RVyFWQEKJzNS/H6iJruqSl+bUxTVs4+PxP2nLtgbCKAJJG Lj665JMISMCs9jmR5wG0zKBH8Z7CFpaS6366YnPKPJUMFCaFrJwk8/itIYACA7T/nwa7 8di/1CTNpT2XDUKixX/xrwrV9pacB9qW71+dN5BUW5neEuDtfSpfdsw97uXbcPs52j4S zi+jve7qquv6dcfOxotLfhhc+5tQK+RJdRws9UoD43hSCe7ub6si1EGUdPnvJGEjDNwc 3qYg== 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=nOiRnCjwE7m1PKKPNpYzKJrEtz7/mwBq5+mFK/43z5c=; b=hwRV5enN78tghOUQ/bfl3bMyvvBjXvmiI3IC4HC100WZKGLG5wNrM3ns5rorg+usK2 JXyF/jKYsa/qiTM3Cx8dgh1g2gWvsaBQye98rYpIa3ZAVP42W2VrKYuZ66CvAYZM0Imk gjFIIpxV/23IkRC1L1Nppo3E4FU7CDNyZkxPdd9gVCenqCk5LUFINYhFc6hBztg0mAcc F5y3SW0rKx+S1PzjPg9/N8DNwv0MIULSlb+RPLnp/8bMd8swsY+at4ArLFa7nu8Rn1mN 6PbHkqeNu8SjyLctOvW26p+rvzzS29RbtJj7oL5N1hOOW5jG3Ln+JqlKfSQjgOGAGtb6 BVxw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65212-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWoYYR6u2r/UZNSwIWbksvv8z/8b5cvENiJqCSGQgqRwjAfJYXXUhGwSg5oS1bba4hI2FQDpxcAYasFaGqdNxgr9VcQmeA1rCme5Sg1MQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id br16-20020a170906d15000b00a3d0765413csi1584989ejb.56.2024.02.14.04.50.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 04:50:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-65212-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65212-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id DF8BE1F248ED for ; Wed, 14 Feb 2024 12:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E62FD53383; Wed, 14 Feb 2024 12:50:05 +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 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" 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 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 --- 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,