From patchwork Thu Jul 4 17:23:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724118 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFAA2C30653 for ; Thu, 4 Jul 2024 17:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=l1qhHpHCRL957fweQgxKEvlqA1 GrHFA/bqn4EapQuRbuflSXbPi6SH/wNo7Oj/R/Aq/mfn8VbNDkuZ2894hmuGhgLWBCTo9wpVUjcCA Dv5gFfuHyyu5VYAoPcczu+pSOmsNTCGpvC3XwPKD+pYPJbHy1bxI71PI0J58T/AdHhb0XGNpC1OUx BitpfMqvx5tMQCAFqb7ua1cMPeFRp4UUNJBNWVCEtQyAgl6Xx+N4ONTwhn/xCqaTw5S/xeo8AUj3z fdYDl783W968FdLw5AK8J3WznJgPnx9AOLef4bfsGqgfqWHhE8C80c3L1W4VZgA1RTrw3W2QLYGk5 pnjYH25g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQEv-0000000E0Bi-2yDx; Thu, 04 Jul 2024 17:27:25 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQBd-0000000DyXx-1qMX for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 17:24:03 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2ee910d6a9dso4810371fa.1 for ; Thu, 04 Jul 2024 10:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113838; x=1720718638; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=aURTyJ2DX3vW/2pkdtUyJuha6vzJtHjfwRWTDV3Rzs3DBOPUQ3Y45x878OYA8dI/Tm O5X06V+3MFx+Tl52LJxxgDscPkrT4roYu9JpcTt4tTr18CY8ce3+oELbvcn53+SZG5t+ qxT1rNKtgtxOc3IDh4lRT3MapW4E6yjFTPJUCf8tk2/3nwb1gCninBE/n5m7xWo61MMr zwcJQhM4OW4ri70bGMi36InWfbmfOWjfsz3t2oddmuhRUnEbsk3TMN+CW/LgoSB7s1P3 aQh4BfEnp/c09RUN7qn56YaPK/M5WTOIJYtnMO2uulLBY/iraXj+PrNzEP2fiooBEeO7 8R3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113838; x=1720718638; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dFEzSQ1m8GOHWdp6McPosgOTS/y1yxZo30lauWYmu3Y=; b=qC50UlDFc+pSuzRDH/2R2KGmR7uEXuOWYSpwX5qZDzymsumqMMa45oxbh9TglPwsVZ 46vAx02Cbv24YJj8TE4el+4D1A5rVQcOA4a73IRAZAmDsIlqpKkhDYgXEFGNLrx6bv7S g1D+eljjj6LO12tkjLKFBGdACv6LAHoo6TJgiPaHzZoQcONRMGs+PQ9IIHEi06h0kbRi /q6RaRyL1cog7E2zVBPqo30X94e1LPkV1HxxstOXkL7FXAxJzvZ59mSESgAtLzqvpzby XCNGuIsB74+/4URXxRTMaeXryS7kNIDZTYpKvN+qHXA/LSxOU9jYbmdPMdQHJUQIcYbn +c+A== X-Forwarded-Encrypted: i=1; AJvYcCW0bQsNF4C8h5dT20hX4cLVj9J4F7pGAw/prSeEbqYJPzRb5uJUi1bFxOUa6EheFZerH6q1TV5B3Jrk+69WpTf91+aRg49N2wt782r6eEGVG9pOhvM= X-Gm-Message-State: AOJu0YzvKsYpy544fV0Nr3yeXm8BfUQD+we6qAFrNF1kpenGjqqpcli1 Q2518YB24hmQyAyD1ea6KdpLlUtxQipezI/J92gwKwGfCHO1GfIz X-Google-Smtp-Source: AGHT+IEi4A1FtaFdz12zIHvNWSEctZX7fNHrhjR6JqhPRCZIKCsxlbu+g4wGlHJlz0dlfvXy+GNHbw== X-Received: by 2002:a2e:2285:0:b0:2ec:3fb8:6a91 with SMTP id 38308e7fff4ca-2ee8ed8bd6dmr15779241fa.19.1720113838114; Thu, 04 Jul 2024 10:23:58 -0700 (PDT) Received: from [127.0.1.1] (84-115-213-37.cable.dynamic.surfer.at. [84.115.213.37]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4264a1d6133sm32330965e9.13.2024.07.04.10.23.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:57 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:28 +0200 Subject: [PATCH v2 18/24] mfd: tps65219: Constify read-only regmap structs MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-18-0c8785b1331d@gmail.com> References: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> In-Reply-To: <20240704-mfd-const-regmap_config-v2-0-0c8785b1331d@gmail.com> To: Support Opensource , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix , Marek Vasut , Andy Shevchenko , Tony Lindgren , Tim Harvey , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=1399; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=l+Er6evvde/rWSFaUokuQlFg/GXNk47TTlB13TZUEts=; b=IB/UfVZPpJfxWBNjRq1HOL9KSAcIs7j71u1a0Eg+t5siatf02eWNOBO2ZelZtfySyA7nHVm0n xHWqVW50PWxARF6sB/K+ga4ov49Gw3AWaMJTC6Rq++jWZ2G7kfS0zez X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240704_102401_942318_85119E5D X-CRM114-Status: GOOD ( 12.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org `tps65219_irqs` and `tps65219_irq_chip` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/tps65219.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/tps65219.c b/drivers/mfd/tps65219.c index 0e0c42e4fdfc..57ff5cb294a6 100644 --- a/drivers/mfd/tps65219.c +++ b/drivers/mfd/tps65219.c @@ -159,7 +159,7 @@ static struct regmap_irq_sub_irq_map tps65219_sub_irq_offsets[] = { #define TPS65219_REGMAP_IRQ_REG(int_name, register_position) \ REGMAP_IRQ_REG(int_name, register_position, int_name##_MASK) -static struct regmap_irq tps65219_irqs[] = { +static const struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_SCG, TPS65219_REG_INT_LDO_3_4_POS), TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_OC, TPS65219_REG_INT_LDO_3_4_POS), TPS65219_REGMAP_IRQ_REG(TPS65219_INT_LDO3_UV, TPS65219_REG_INT_LDO_3_4_POS), @@ -211,7 +211,7 @@ static struct regmap_irq tps65219_irqs[] = { TPS65219_REGMAP_IRQ_REG(TPS65219_INT_PB_RISING_EDGE_DETECT, TPS65219_REG_INT_PB_POS), }; -static struct regmap_irq_chip tps65219_irq_chip = { +static const struct regmap_irq_chip tps65219_irq_chip = { .name = "tps65219_irq", .main_status = TPS65219_REG_INT_SOURCE, .num_main_regs = 1,