From nobody Wed Dec 17 21:16:09 2025 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 378F5C04A6A for ; Wed, 16 Aug 2023 12:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245175AbjHPM2c (ORCPT ); Wed, 16 Aug 2023 08:28:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245297AbjHPM2Y (ORCPT ); Wed, 16 Aug 2023 08:28:24 -0400 Received: from rere.qmqm.pl (rere.qmqm.pl [91.227.64.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FEF3270E for ; Wed, 16 Aug 2023 05:27:57 -0700 (PDT) Received: from remote.user (localhost [127.0.0.1]) by rere.qmqm.pl (Postfix) with ESMTPSA id 4RQnTH60S9zBZ; Wed, 16 Aug 2023 14:27:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rere.qmqm.pl; s=1; t=1692188851; bh=ZoZ74Qt7gAfxTdmWNwTdEhvWfKZGk4ZFTxTG8dPs4zA=; h=Date:From:Subject:To:Cc:From; b=pV9Jn9RXX6WjAGPqgR4EUTdzAOuRu3DC5xsMjZbZlocF4y4liLkPh88mB4hbAfm3q F9ZZZ1tSUMK4Im9KwB9Hk90lnyTHSQ70gJt7z096lXJE6XzAJpiIqHdsSM789vLnb0 yJ+zA74YnhWIdijH7kcNo4EoxIxnjdPmF6M8K+kArqlYUEbUNHt27lUkYF8V8NB2EQ nuTnhWEN2YdXeffNy6ud6+7Yphb1ZDllT62dhcA9I17KkQC01LfCgJuqj9uJ4WoIK/ ZrkhwM0cylGg2t/cCQuB9ThGrmsb2NnNSv7gbLSpmcSYdwyGF6RcKm3SsXyvoLU/4m 0N9OR/8gXoF+A== X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at mail Date: Wed, 16 Aug 2023 14:27:31 +0200 Message-Id: From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Subject: [PATCH] mfd: core: Un-constify mfd_cell.of_reg MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: Lee Jones Cc: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org of_reg is the only constant member of struct mfd_cell. It seems to be accidental and prevents dynamically filling in mfd_cells that use of_reg. Remove the `const`. Fixes: 466a62d7642f ("mfd: core: Make a best effort attempt to match device= s with the correct of_nodes") Signed-off-by: Micha=C5=82 Miros=C5=82aw --- include/linux/mfd/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h index 47e7a3a61ce6..e8bcad641d8c 100644 --- a/include/linux/mfd/core.h +++ b/include/linux/mfd/core.h @@ -92,7 +92,7 @@ struct mfd_cell { * (above) when matching OF nodes with devices that have identical * compatible strings */ - const u64 of_reg; + u64 of_reg; =20 /* Set to 'true' to use 'of_reg' (above) - allows for of_reg=3D0 */ bool use_of_reg; --=20 2.39.2