From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B42C3EB64DD for ; Thu, 13 Jul 2023 12:55:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234840AbjGMMzN (ORCPT ); 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-Google-Smtp-Source: APBJJlGNbBaZNZzhRqvBhmZxwxOkXQHv5tfhCsX27CPDxO54TJ55M2kLTGHBSD6Wjfv23AAJ33ALOw== 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 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