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 B6393EE49A1 for ; Sat, 19 Aug 2023 00:12:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243034AbjHSAL3 (ORCPT ); Fri, 18 Aug 2023 20:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243161AbjHSALZ (ORCPT ); Fri, 18 Aug 2023 20:11:25 -0400 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F6FE48 for ; Fri, 18 Aug 2023 17:11:23 -0700 (PDT) Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4RSK0S4G1rz9Y; Sat, 19 Aug 2023 02:11:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1692403880; bh=n6AlMqYYLWa+4W1EOruJR2eseuKtbdxHEbWODPFb5l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nVKT5VmNL5l/I5wEs3VuhZaO2RCGYKQs8Li6HfMi4CSVDITTvSns+9vD+8LGOTmg+ TDq5vIytN4m0PVb4knBjH5pMcc0zqTcPRe+eZPTbbXDaMjzUwTZISTttA/wUqrTi9o BiX1HXfXBKT303OBCsZ9DaB+UWfHFGkZV37F0XtDKtLKfaa6VufMHlfwIHH8gr9jXX M0FS2GLGbP3KymfyWxBnDC2xmPuxzKlM6LexGW9qCr7aE7fJDrFCyr6MwVmdeXn38u j8i9Ga+kzlXBDDxQQ4K6/KAXc3lxkqKRS1vc8f+cLfgByxdLoH53jqak7NsZ4Wk0cz LF6YUrQHHWIpw== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mail Date: Sat, 19 Aug 2023 02:11:18 +0200 From: =?iso-8859-2?Q?Micha=B3_Miros=B3aw?= To: Lee Jones Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: core: Un-constify mfd_cell.of_reg Message-ID: References: <20230818155815.GY986605@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230818155815.GY986605@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Michał Mirosław