Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9983765rwp; Thu, 20 Jul 2023 12:43:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcX2nwa5km/K0/EmV3qWUIGJtFmO/1/TNbeKTctguyyjiW+J6RCEJu4Pvt42AL9T6UJ8ob X-Received: by 2002:a05:6a00:188d:b0:66a:613f:87e1 with SMTP id x13-20020a056a00188d00b0066a613f87e1mr25442472pfh.8.1689882213957; Thu, 20 Jul 2023 12:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689882213; cv=none; d=google.com; s=arc-20160816; b=kuJEVHns8mIKbtFAgmVKwhkDHkXB+BxVOobXO2LPgrxb6Zwj5jU4JN7ecyXOVqKQLu NcxVF5k6a/u6sQXeY0t1C85BqNoM4Dg2fYWyV7cLgTFwoQjbFc03RF96fJIjXsIYTSSt h87ywgX+Ja6hwE/suOt9Ig/KNuSMcaH3sOXQJK8RZzXP4UzNajqpztj0aS1NuvTAeoA0 H9frN24R2abSU7iVm0rGWWobCB9pmK2YN+ctolYxU9vUNoFjvWldNeMov8kfb3P7YRkK 7yywIW3/wZOy5A9QhMb8LyzYOrmgD61aVy5zJisOHHlBsdwIpOqpL7Gmik05TmaKAMpD Q+3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=H2kxzaMJQPn2YXitTdL9THYsaAwOx1AeeQ+SWDy4Vg8=; fh=4OuQq+tb4cxycaeOrp+OiYuNUnSFOuSkdVXQ4X8x1u8=; b=pknzS4mmr8yLwmiv3zFBBur/ABcIxHGuxCBu7B+9/S0/yQ+YrJZIqC0hQLmKCkL2JB aK1MeS5PoTvmrAH9CadH/LTfMAmd5HhVy5O5+IuI+jzos4w8XotvtzI+FtSoUBIGu2iQ F/ftxBC1TRrYvwVc+LntrL9lBo8IB41G1DwA7Jz5cuQS8Crlu5rngpM37F+nPeWPmt9j UqDn0D0o8xmFTGhiHsbdhOyzJJh+9Mf/uw/1MpxX5SLWU0HDpfaxKdC/lVvS8tQOoKZe v3LQRNdww7gPDBrXKxQdzQh+EzF9uEJ72CLJSWXn39KTztQeYZfrgoXx7tm4FsXqqYv3 K5pQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bd7-20020a056a00278700b006686d07f4b6si1393233pfb.327.2023.07.20.12.43.21; Thu, 20 Jul 2023 12:43:33 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbjGTS6z convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Jul 2023 14:58:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbjGTS6y (ORCPT ); Thu, 20 Jul 2023 14:58:54 -0400 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84E6E1734; Thu, 20 Jul 2023 11:58:53 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5216cf475e9so325388a12.0; Thu, 20 Jul 2023 11:58:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689879532; x=1690484332; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CnPv017HXvT+5hhEzMVCHJiSOe685zyo6k5IiZLINlA=; b=UXfRlU1CWN2hh8UMzZn+D8uNKqqL7BCQ0oyY571Iiwvt4ki8re+ZGDm/XiHSlAVCCs poJNOUGhx+hGnM2FXoeYSGLh/NWvsfugJO2qXIs5vO0tRoMDHjF0ojCSx3wp5QdQxEIp 7ossnacmTCIvTZ7yadKoghvI5b2Y8KvkKx5v+OlM9W75FcAh1bF7Lm9IO6HWf2q7PkmV VffPAdS7k7xaM6XR7xzmQbGpM+2lZR47WdZieZpbbjsbF1QzAaOx3V9Ul+9XSvosLQnd wZfCEDlEus5zYnzZmt7CyAy8Xnt/xDVBTHmJuoGOdkRKscqVAjSTX7Kn3ojkJ7r3sY3c hLrw== X-Gm-Message-State: ABy/qLZf8CpA23RqXWfy8BkdVhVZMXTLLRhUkcj7Yht0PuNq8DKx/aTQ m8aAINF4E3cRSp+mKvA546Mn+JyJMxZ3B1R4PCc= X-Received: by 2002:a17:906:242:b0:993:eed1:8f0 with SMTP id 2-20020a170906024200b00993eed108f0mr3121134ejl.3.1689879531779; Thu, 20 Jul 2023 11:58:51 -0700 (PDT) MIME-Version: 1.0 References: <20230708112720.2897484-1-a.fatoum@pengutronix.de> <29d2533f-9297-6383-e26c-dced2756f817@linaro.org> In-Reply-To: <29d2533f-9297-6383-e26c-dced2756f817@linaro.org> From: "Rafael J. Wysocki" Date: Thu, 20 Jul 2023 20:58:40 +0200 Message-ID: Subject: Re: [PATCH 1/2] thermal: core: constify params in thermal_zone_device_register To: Daniel Lezcano , Ahmad Fatoum Cc: "Rafael J. Wysocki" , Amit Kucheria , Zhang Rui , kernel@pengutronix.de, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Jul 13, 2023 at 2:55 PM Daniel Lezcano wrote: > > 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 Both patches in the series applied as 6.5-rc material, thanks!