Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1121108rwp; Thu, 13 Jul 2023 06:30:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGFiwjhV71wBvju8lIlV6+dsn7E5VOJhECN4/fUI8RiOc2gMqqRJHMdtj3gc0/GTPPHZpCo X-Received: by 2002:a17:902:e88d:b0:1b0:f8:9b2d with SMTP id w13-20020a170902e88d00b001b000f89b2dmr1449352plg.29.1689255046837; Thu, 13 Jul 2023 06:30:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689255046; cv=none; d=google.com; s=arc-20160816; b=TlrGusSZ4UReGbxZCTMC5lb+2VxoFVtwD/ZzTc47wuXBEiCr/Vr7do5sJONGp41KlX 0/8wYcQb8OnE9ITtzEuHLKEDTanvSYA3C8Xe5XJJya0KkgQwP1pElygRSuoxxmrsLfeT U1a5UadsMLSlDsn189LewsRn8BB3vLAufrOwGJT6V9ZswFkgnbrnewVV5v9V2gR3jY4a TcdRH9snQq/hlHNHSym2CpVyLLM6LSaaLjVaCNNGMa5SRKp1LzAwPUxwlUGEbfArJtS2 FhZJ1db+pZw27U49/Fg5MkqKpt2ylhCYHMRVZF58GSxreBa5XpjEigVq9Io3SwvST0oQ 26cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IJPCLMCOPjf7pqpG3E3SteaiCM4QTxX5EIsvUr4Ng3k=; fh=3L3Au18jIvTOuidhYdNur6cvyZXCfAAF2HV/YDvu4vo=; b=gUhdiCW3QlM8xjiirYM9SipSVbVPDpCXH3Em0KskhjE8kxQxV3K7mugI8lIZtpDh0w 8S9QSa5wkgsvKKdeSHwSiTLz+l97gmxpp62AXJnY3SniqL13GWq/s0i6mBYog1Ou7nLC Mj5jJQ+BjxDrfnFYTlglPANXbbIvLC6XRs0GOzPfxU8w59cie6AhUoUMrMGAARV6IMAA vXS9IlrSSQOkLxmBk5dLf1obu+Juq2CFrwzjEwehzi5paLfP247ZntqXvsfo8TUQlsi7 fsNen7YCexMEhPiyX8cjVY1c9lBKfD3RAVXXIBSxyS6ttAvoLNp2HgqSeRuzRjTqohkj NA+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wN3gv1xa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h10-20020a170902748a00b001b89ba798d2si5136679pll.498.2023.07.13.06.30.33; Thu, 13 Jul 2023 06:30:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wN3gv1xa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234723AbjGMMzN (ORCPT + 99 others); Thu, 13 Jul 2023 08:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234425AbjGMMzL (ORCPT ); Thu, 13 Jul 2023 08:55:11 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5408C173B for ; Thu, 13 Jul 2023 05:55:10 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fbc63c2e84so5220665e9.3 for ; Thu, 13 Jul 2023 05:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689252909; x=1691844909; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IJPCLMCOPjf7pqpG3E3SteaiCM4QTxX5EIsvUr4Ng3k=; b=wN3gv1xaDV2JPw5FDBxOIYYgaKB7bR/BmRq3Vcz7RApscHjjK96Cro8qkhAPZClami 8MdB6i1EL/CXPp4ZmyNuP6B5CYVqxjY7KnUBfaC6JyBZ3yZUDFKKrL1WTn+8GPBycOLb lJQ4mVX8M8CII3AzsN+n9mq0TvpgxkHTw/zPj8RVCHyB7VDBmOqb2bMJaCzul674FgKk 1SGL2N+O836xf7BvYNFn77AuKEpdrEv7HR1XFaXgATJnaATB4bsky9hVgtOTor2oBhvO Z04XStmX1++tEHijtAbtyEOQ7u+OUCRGZnP9lw+T1BPENzmGUwsSzf105l1ThblP/IPh Qzaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689252909; x=1691844909; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IJPCLMCOPjf7pqpG3E3SteaiCM4QTxX5EIsvUr4Ng3k=; b=BgePueISIpMOrEeHUJ9cAUsTLraevYVZJIpg4P8X67ySNneV1VulsZzsCGg3Csy/bO T4Lviavr59EOv1hAZKF+6vmxg6YCcIcfZHzIpXm4fQz1q1QNMix+F/CgA7XDdbjJvcZC ip68Gga9DOhuILx2As+UQvY47J+XB6SzZRPdg7GdJS0RToKK75xYEYVetd/+eRGgjqzi v1WShEPsI2MoR+vpIj37MC/bbk+PMcHHK3Dqx54pAslcK6sAihw6U9NHaz+VI0hiomAy 00jHRAHSt27QZqFP0ygNiF91s7xTVPCVp/62BrfujD/yaGuppjJ52BnBgqFvcT+0VZmo El7g== X-Gm-Message-State: ABy/qLadMCiWUwGbxSXn9YfLfDzM9WST519K5tmUPWuGxjfG67o5N0+C hQwrLf4yxnqNGtXZaj2wRHXWEQ== X-Received: by 2002:a7b:ce0f:0:b0:3fa:964e:e85 with SMTP id m15-20020a7bce0f000000b003fa964e0e85mr1658220wmc.5.1689252908757; Thu, 13 Jul 2023 05:55:08 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id n22-20020a7bcbd6000000b003fbb618f7adsm7691549wmi.15.2023.07.13.05.55.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 Jul 2023 05:55:08 -0700 (PDT) Message-ID: <29d2533f-9297-6383-e26c-dced2756f817@linaro.org> Date: Thu, 13 Jul 2023 14:55:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/2] thermal: core: constify params in thermal_zone_device_register Content-Language: en-US To: Ahmad Fatoum , "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui Cc: kernel@pengutronix.de, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230708112720.2897484-1-a.fatoum@pengutronix.de> From: Daniel Lezcano In-Reply-To: <20230708112720.2897484-1-a.fatoum@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/2023 13:27, Ahmad Fatoum wrote: > Since commit 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone > parameters structure"), thermal_zone_device_register() allocates a copy > of the tzp argument and callers need not explicitly manage its lifetime. > > This means the function no longer cares about the parameter being > mutable, so constify it. > > No functional change. > > Fixes: 3d439b1a2ad3 ("thermal/core: Alloc-copy-free the thermal zone parameters structure") > Signed-off-by: Ahmad Fatoum > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog