Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp210044rdb; Thu, 8 Feb 2024 03:58:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4ivPpt+miZEqpUx/WH6Hhjp+ILKgBeQrQwQmEV/EJJuM3t0U38y9+10qmjOqxPjI4rTIC X-Received: by 2002:a92:d490:0:b0:363:d6fb:3244 with SMTP id p16-20020a92d490000000b00363d6fb3244mr7044224ilg.22.1707393493272; Thu, 08 Feb 2024 03:58:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707393493; cv=pass; d=google.com; s=arc-20160816; b=oh12mgqGU0Q8XEhlEswJoA1q4AdbKHaBDLW/LEoRVZYfr+o2+TtnhieM5bAX1AgMRx rvHOUmxnEUHjD6I+VGiPyDwR4xeb56AsmjpcDCwgHy/EqXSHwaFoKqpuwQan4F7+w/W0 4r48ylmli/N0ynGWKk2gJYECGErQLVHq0WmMI0Kqrjq6VDaK87sHwObbIFXf8JgUiNYr jrGC8fGpLWKQngwb6zZvu/wLTCaoDtGmL/e46Xss3765yXdhoydLgoNxQgPmv9gaFkf8 l/CdWKaROstOkXG3f+WJaN8TwRVidABz01NTdvJs6zZKcsG+mqEYJRcQst8BK5WFkqox w9vQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+tEUv33PHvHCbAl/Lf/BjdkpqX8HkcopTTKe0RxFv80=; fh=DWtej8oYN3grAgKsdEOC5TWGsadgY/b3aU1fS2vKO48=; b=IADOL/SsblBwbfnfILuRhKDBA5qOcq9tr2D9souxD9NrxLV+baPN5H5cdMWIGKfK/g hp0V8hrzH113xOKEct4/NtOJLpVsUcwGjd7DNHiuWlPkZEp8cufcpVqc20fca2WOodvV j5kV3Lge/x62W8YU6UVVRQgaDryg886NLWWp8vzohwc2PE8mDOX47Amfy7rlkcvAL1G3 /kAeQKnZ09Q5KBippsG62ynNsuHlvpUL0mfLOI8EYzwAS+roqCzdsW7RZhI6Axm/4ZUN oJCVZo4+C+iZTaZ/g79elv2ktZfFkIcgzLRTJXz5fYbBBPqEJAIpn+HPxpsm8YjoNH2b CKbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cC08pJx+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57664-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCUpToFw6K8FiFZ4YddafNcgfLzpXH8FtFo3d+rI+c+WN88izFQG7bNi8j3stBuqzm/o2QbBlNx8ZxXq/rdYhyDK8+b/aAbbjmLtGH8pmw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j65-20020a638b44000000b005cd90b47495si3597724pge.264.2024.02.08.03.58.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 03:58:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=cC08pJx+; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-57664-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57664-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 E7830B269FC for ; Thu, 8 Feb 2024 08:52:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 897786F079; Thu, 8 Feb 2024 08:49:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cC08pJx+" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (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 5774F6EB5B; Thu, 8 Feb 2024 08:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707382159; cv=none; b=PSiaG6c0TNsCrNEczlpD0/nRLQifbkRluxcIX/ehQdT2s+6PIfKy7WJJH+9gMWCXFROTq7KM7SfXCW65j7sg3HPEGdcPhmkK+hvb0lwNFmDoaRg4vIFpubP4QtJXuagquSH2Bba1RnZlKqQsUjA9cBobqohBmtfd41X54ye0HOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707382159; c=relaxed/simple; bh=IJLtddHK7syBOJK/ZgKwSd4O3Qu/43q6Jg6D0Bzd2zs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pKYl71QoXGcCNgDcm9qvX7U3xwkVNLNL4GjdRxPF6N6EPJwiA1y42HZDYE25mI0aRf5uJ0YH7rWBPhnIeHNjtZ0I9nXYQepR6f5PVI05EmWGj65NRAf6EuLoojNFowdnmTn2TBVRfYeSw+8YXLPMkiLAmymyj0RxluYhgBPZfEs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cC08pJx+; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707382158; x=1738918158; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IJLtddHK7syBOJK/ZgKwSd4O3Qu/43q6Jg6D0Bzd2zs=; b=cC08pJx+Ko9UXqkE9MAxsL1SNyRAPRZzSgZkCjtE8CcKzMzrTbVWkqRG cOnwoJdMn3WOFegG/EHyj8TUTgv15WjxSaX8Mz+ZAdGXofbchu0OZzNWy cvp7oGtqodSdYVf6/LElHVSZIDZNe3NlpGInmHhz6XlCW1ZPSReS2HKp9 RbTm5q2mZKJOoupsLplWM3TFzvjv02yjCsrhW626+dI/vaubvT7FBdpIl UFp+z8ssZq3SHrFuaLvitMzTQ37PNbQ8IAPsePrp8pTeEByMploqQucUg u6pyAHcEoYCOZDYhNkKhjrB+tvAsYl5nCgwU15zawAVIt/k3iNCwbxiGU Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10977"; a="1328314" X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1328314" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 00:49:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,253,1701158400"; d="scan'208";a="1588199" Received: from sgruszka-mobl.ger.corp.intel.com (HELO localhost) ([10.252.43.105]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2024 00:49:13 -0800 Date: Thu, 8 Feb 2024 09:49:11 +0100 From: Stanislaw Gruszka To: "Rafael J. Wysocki" Cc: Linux PM , Daniel Lezcano , LKML , Linux ACPI , Lukasz Luba , Zhang Rui , Srinivas Pandruvada , AngeloGioacchino Del Regno Subject: Re: [PATCH v1 5/6] thermal: ACPI: Constify acpi_thermal_zone_ops Message-ID: References: <2728491.mvXUDI8C0e@kreacher> <13456661.uLZWGnKmhe@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13456661.uLZWGnKmhe@kreacher> On Mon, Feb 05, 2024 at 10:18:50PM +0100, Rafael J. Wysocki wrote: > 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, > > > >