From patchwork Mon Feb 5 21:18:50 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: 197072 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp1181359dyb; Mon, 5 Feb 2024 14:18:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8thpERlheFIAhRibLToNB746TJc4zu5RH/lz9Ac9I9N5Xemm9ITEvB/DLgOVsZZLTYeDa X-Received: by 2002:a05:6a20:268f:b0:19c:8a24:82e1 with SMTP id h15-20020a056a20268f00b0019c8a2482e1mr815986pze.17.1707171537510; Mon, 05 Feb 2024 14:18:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707171537; cv=pass; d=google.com; s=arc-20160816; b=Wwwn1hCz9ml1RzF0G77kjlPTsKEC7LOU8ZrtuyMDJIzlfD7RblmmC9SVQgSLRd/xtk OUsET4el7iSImWrg35bhB3OMPP/EZR5QgHf9D5LEii7RPKzalx67PKPxvFRXwV8DQTnh wOHQmxJkLyNy0B/jhsLpvYmQ894VclVdRiplVPjK6tOKg4om1oE8cztMCJJb8dEe5jTB HiHpPW8DnpoERq/BrdG1dYQL2f4/fUP0te9OiC+hxhwOJo9wX2wekP3XyNo0ZQTQQYO0 amapitOYUycmgPINo86esjalGfFqFrY6SKWxrmmY4yS1t3qPfLAWpRFtyGUjnNv1t5le 3n+g== 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=UJBVGkRf20miicPtgAUwdP6QKdM5pEyqQewMvctvc60=; b=pKh1WDRad+tpvoy2GbfX5RxdH2PCFiNvk4JSebaZ4EYbYjOpFnz7W1ydPazggDVNAV DmgcudQjNKCklILySaPUoWPmQfGO0RTrath0jOWPWLRa4cnDjd3gCmK5307d3IiHGz56 GS5NW04DmCAC9vLvdoAzwo7lUlcy5vlp9GQhiqXEcmWAygSe0dxBxNS4dflmddiNM4Kw ve0FgXz2vBGli6sggz1osirz7dhO2V942KCnkHooS9AwkjV/5614NtBZ3RAfuzbqFiXF Oed/NS7X2UdV3xgFO9UvaMyyDpjACCvno8T/F3I0YfMPI0593e1X6yI364OebBDe0dRt Icxw==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53969-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVjOqWNZblugS9rtpsI0s9aGaIv303aAPl183+1UxBCjW1lzmebo86IhNbyTxqbUBGtpFm032vfQIl0g10T/N7rVQY4jw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m20-20020aa78a14000000b006e04a93e530si431136pfa.293.2024.02.05.14.18.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 14:18:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53969-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-53969-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53969-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BB1B3298510 for ; Mon, 5 Feb 2024 22:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13DB25103D; Mon, 5 Feb 2024 21:21:20 +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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790099102273203768 X-GMAIL-MSGID: 1790099102273203768 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 Reviewed-by: Stanislaw Gruszka --- 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,