Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp1323602rdb; Mon, 21 Aug 2023 04:37:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmta0Xnr3BdJIjTcZ3f8QeAIBBJEMvQYmLcrBwk19eKken6Gg2wfI+g+VSQs65q3CY4gFG X-Received: by 2002:aa7:d3d2:0:b0:522:3849:48db with SMTP id o18-20020aa7d3d2000000b00522384948dbmr4553510edr.3.1692617827880; Mon, 21 Aug 2023 04:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692617827; cv=none; d=google.com; s=arc-20160816; b=VhHVMY3caYbkhYQv/rtdCu81pSZ3BKtmWumOSVOjJyrlZyQu2GV1caYsZUAXwY9E20 fntdjmyEAtdFJ07+5BBsmcT8onbsxHKDFlm7sShkDP3JKW6sjQhpeMGDm4Mt1NI7H8AR /0Bwrz2AL4p+Y6DGfjYHmpQDp5l64i1C0NRP4NOjZPRy2Y9jx8RSHNjUwMcllFuZzgwS 54DmqBzL+1an3qALp6BuuTUvHkkLXn1GQb7SopZxd6Zv10WP1EA9gnl0gZV4g+egZxqU 4HE2K2W1UX4l54SoRjSF7qXThI6sFbRG1EPZVT+dawPsz6vjRVNVWuCEw3ttkptOV27D 7f5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MvNSCn260hRfW91hIJjPz+g/Y8lVb9hlgIJjc33jLlE=; fh=q1l97cAlFaGSc4+A3+FSYM//eCKGB9AynL+xhMonGpQ=; b=xtp2DxnlsXvXScxo9xaolaTZWNFVYHANepc4m7yZ04JNhFowzjhA7nwKTLA5ZiDwuN q8WfToI45c9KNbmbm/UEEhmHWEC1XtWgyMNoJami8nM4KrqXWN8fja+JI/7ET5vUn0Md oOeRuOlVfKjJ/82qNh9gvqPR37CoVozyfIgfUREfqMQZGNPgQ+GnN7Ou2c1HEj1khLOj 0KkIRRe3Q7HaDMbQs3CDINK5TM945sBRGgiRlAiTmKJMFIAWwXYNEhnhz97j/Kyc1blH Z4R34RIzoGNVPWkDzZJs80L9c91v4ybizgmnFh3/eymOiNuzWTbzLippGknnlE+9BKeo h+Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WVNQQRs4; 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 i7-20020a50fc07000000b00523d3661352si5296558edr.254.2023.08.21.04.36.43; Mon, 21 Aug 2023 04:37:07 -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=@kernel.org header.s=k20201202 header.b=WVNQQRs4; 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 S233917AbjHUINr (ORCPT + 99 others); Mon, 21 Aug 2023 04:13:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233819AbjHUINr (ORCPT ); Mon, 21 Aug 2023 04:13:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E499293 for ; Mon, 21 Aug 2023 01:13:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 74B3362CBA for ; Mon, 21 Aug 2023 08:13:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11D45C433C7; Mon, 21 Aug 2023 08:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692605624; bh=L95VOeOqXHP4aQGVTzRlC4ci26zBJpdbc+9XZTcOtw4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WVNQQRs40bhEU6Pmkx9cx4vEkwHGoenL8y4rDmWH19rqyMLSxw0lauhYEvtjjMNx5 bdu7dwTfSPuCQn4I/xlNgvHFCAhLjfkptTa9KTRkVtvH1vPTzhcCYeFDxXffcmKvUm 537E/QD/Fgj3hpolp7VE0tEFkrn0lhPrRQro/g2xHWAqUaQudo5g8NNQXKAaHcZA8r 8JuKfmM20+E2zekjwpjsGzCw3jhaI9m1Z4/aI8cgwll34pDXZoEvFzseVJAdWiae9O aBqq+BOcW2OQXzO34wudLo6QUfoXg9MqQk4FEe+ludrV+963jfs3l6HmBZ4OYDxQFA GB+WhHkwikPUA== Date: Mon, 21 Aug 2023 09:13:40 +0100 From: Lee Jones To: =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: core: Un-constify mfd_cell.of_reg Message-ID: <20230821081340.GD1380343@google.com> References: <20230818155815.GY986605@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 Sat, 19 Aug 2023, Michał Mirosław wrote: > On Fri, Aug 18, 2023 at 04:58:15PM +0100, Lee Jones wrote: > > On Wed, 16 Aug 2023, Michał Mirosław wrote: > > > > > of_reg is the only constant member of struct mfd_cell. It seems to be > > > > Sorry, what? > > > > struct mfd_cell { > > const char *name; > > [...] > > const struct mfd_cell_acpi_match *acpi_match; > > [...] > > const struct software_node *swnode; > > [...] > > const char *of_compatible; > > [...] > > const u64 of_reg; > > [...] > > const struct resource *resources; > > [...] > > const char * const *parent_supplies; > > [...] > > }; > [...] > > All those are pointers to const, not const fields themselves. Only > `of_reg` is const regardless of the whole structure. Please make that clear in the commit message. -- Lee Jones [李琼斯]