Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2705002rdb; Mon, 5 Feb 2024 15:20:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpkuLuG2Se67I8BI2nDM4EUk29kNCNKaM7DErqLMSrnw1RpVbXhS0lcx8Pl8ro5xzAT+Tn X-Received: by 2002:a05:6870:a552:b0:219:70e1:f893 with SMTP id p18-20020a056870a55200b0021970e1f893mr1276579oal.38.1707175256385; Mon, 05 Feb 2024 15:20:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707175256; cv=pass; d=google.com; s=arc-20160816; b=TURe712nzgIuYWjReTY7FrjwGfMDGgLyNU5vkIAQrN72rEZOjg+DO61EtaNGEr5wtg CRbykGwlErc746sX2bUt9w8LVgsoHkzMMqvtkO4Ed95j9B3nkT4RYRGDun2bT7/VlQS9 C83JSpJMVa2URCEAd4nafVu5svF5QEEL39E3wad1hukUJx4xK2d/hS7HAV3N05TqFePh A96oCG3H1UdPUh4LHsSp55tnTqYCv7AeBxSp4VpTVNP+GjpPdiWWqqH9P13VyplOx4q5 qk7Lk7hycADGxlEOwvJd8jiPU3+qj6DUrdG4gaxRl2VnvtBbikR3syw4RA2Nz7ts7SRP HL4A== 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=RXpWUYEECXs4Z+KxSSiJVxuNvEbaC7VJlSrBRYDoNyg=; fh=RCXfnlg7NWenKhOefuv39vfXdj3JIMNQlg5xrtFM0a8=; b=WAiQPE74HL//kuoEoX5a8k5MTeKlqMO8gw95YDEzymTza5G9OzgdigigycRQZx6YfP TNfy03bARjqnvcISK6nnxtHx9eozhiNCNC9UwA1Sjp2EPNOi45iIL4dFbKpKN92dahpI oO7k6lLtW/F38NImvVp4WUBMie7OOcDI+I2y5FISxUc9lt7PVKkDFoflQY9Lq1irI+87 l8J2QG4jnDdh5QJ7Au14WWnWS3nVl1zsIS/Mbi7HKSd02MoXAWuBbueORxsMNeXkPNYp z9XAm7KRRUmtzpIdVYu1mkqGjA4rEsNUsmRYJ+TMYZTvWbqyivZuGq+8mLXclo+sSgKn Cn0Q==; 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-53969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53969-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCXL6cFvDyKMfydyESrhkhcHvG07ZxIA17mxkpwghd6fn6t5tDwABnMYomfoU8vvaEeUeTt0JXV4nAK2/b4lIEqMdgNVSwq44snLxJnrNA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m21-20020a63fd55000000b005d8b7c3a00csi620627pgj.145.2024.02.05.15.20.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 15:20:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-53969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53969-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1C823297FDB for ; Mon, 5 Feb 2024 22:06:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D55D250270; Mon, 5 Feb 2024 21:21:18 +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 7D69645953; Mon, 5 Feb 2024 21:21:15 +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=1707168078; cv=none; b=PA81vih3oonVIEzzrjorR4npD+utpYG3IP+ufCGbz3a3EbxcNFJxdDZGqF+ZRhExqu3wTHujELES3fvyMGEgTecUXY5h2eH90SUNy3Erzr16sH5q2RNn/KAUA3EMZSnYAj/EiYLZJ2UMyuXZPNCE4p8R3JqY26bCOtY8rAiuwu0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707168078; c=relaxed/simple; bh=uXW4hfcLlYSYBRzaasWV9Z+OWE7NVuFqC2y1YHfVNro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GP+GEA0l0NEjzVg+9IfM2Uv25sMNNagVBfYbmvW5aaXcbtJMVXZgOnR8WocipyTSsLZGw7YH+Ury3luesosXu4ct+zk6m6fOeZrS/h4fVkRPZ1RBrhL49hwvYYudeKJXhEldDK7bIpXjfWGhWWIKvZLa8Tl8SgOlCFcKNaH+w4k= 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 15d0f90479fa4dac; Mon, 5 Feb 2024 22:21:06 +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 4FFE2669A1B; Mon, 5 Feb 2024 22:21:06 +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 Subject: [PATCH v1 5/6] thermal: ACPI: Constify acpi_thermal_zone_ops Date: Mon, 05 Feb 2024 22:18:50 +0100 Message-ID: <13456661.uLZWGnKmhe@kreacher> In-Reply-To: <2728491.mvXUDI8C0e@kreacher> References: <2728491.mvXUDI8C0e@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: gggruggvucftvghtrhhoucdtuddrgedvkedrfedvuddgheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepledprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqrggtphhisehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghp thhtoheplhhukhgrshiirdhluhgsrgesrghrmhdrtghomhdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=9 Fuz1=9 Fuz2=9 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 --- 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,