From patchwork Thu Jul 4 17:23:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724111 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 379C1C3271F for ; Thu, 4 Jul 2024 17:26:16 +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=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=M9Z6IRL7jKEl3ORReAdPfQNo+h ZDg46PQopFmKX/GPoAwmKHUVFPBBq2DEQyTPV9Z96B7/FPQaIukh2QR0gkLBNErkm5frHVLiw48uI Pmxx6GBf0Ijbd6ElKPu2Wi8tVCew5SpfwmfIAMUHLUQz49u1jdU3cPiZIIWmTrSp7naJewxnjS/vP UlEO5IVxxGua+X8ZC/wr/GzZytjN1KBfc0G8TBqSmutawqd5j7Dc5m+vAmZA62Jo08m28HE+dTNZW WiNK8Ecuw6UT1ePGYudO63tUbjgOGkXpe1/wlKwVTZuGBNtLlFiC3+3qh92PR57Bw2S14nd+HnfKb gPWCCO+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQDc-0000000DzZG-3Im4; Thu, 04 Jul 2024 17:26:04 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQBR-0000000DyT0-0RBP for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 17:23:50 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4257a390a4eso5798105e9.0 for ; Thu, 04 Jul 2024 10:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113828; x=1720718628; 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=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=Y8Km+9woH7a6rEu6VQhY+CLdXPnH/NVxDtl1OKR1f5Y9gm8XfXUcWu8iud/rRNcemQ MsGCmVF4N+Wra8xWrTxqMtyIX/oHdR+O4+1DFODMtyDlxNOkz+VTcw6VWOPWaiT11NEP 8imNF6N7+jE0/Vr980sZeMBKOFee2wc0HXrdME7LuXtYW1ZT2nwkdY7JDoD0XU0WE8YA QDsgrjycnDk64C8z1032zx5+5uXEdveP/ffAPXNtdTHW2TXq3zsMEn9RE2ZX6/LpOiDm 45rkvTCMW5+/bKINPZZoHyqLCHSX02edPZqDqL1ylCUZTnK+2CPor4n2DlK4eMXTX6Ku 4/ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113828; x=1720718628; 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=F7zE6lHigua1P8ymODDtiJ+ZtxaVQFbo+ktZc42qUis=; b=b7UsUpc+yLQA/XdsjZk3tv8llvCX82C4vPBOAoQyYkqtephan7Pbhp8ebggcvK6W9Q T1UwU99Urb2k8ko5IzgjgFwLsDw601NJeM0Us2vhbRR/DaFqpjXPlTlvM18DVkinelVh KF8ow12hRHFaVpavkCQtK498dNwsOKxSdH3rrntIq+6JwG+0sliSMPO24qRTg5DIxepU WQP2dgcoVEGDY1WSnBVhZvb96R9Q8+IsZ8BKjyaqW32uEagD+GTsTXj2BsVfWGmBtOrp Ld4s+v/vUM43YREOxbAATZjXNTiFKXkKVQliZFZKUoTecAcwouReaaX6mVg54AtQ6ljl GjLg== X-Forwarded-Encrypted: i=1; AJvYcCWSykBwueKQ7CTvXkDSd66uhKI7N+3pg4V7jyL1qVuEDbI8/qE1IET1Ug5ZsuECj5NmvQZiUFJSWaVzzylks5WPL7x1cbdQMM8hMgNBS8RL4uybva0= X-Gm-Message-State: AOJu0YyZqwO20Nnd6mHxRZIaUzTe4SAYqr4ah2Pq5HcnJOe1A75hlJ3d X8WpmkbKHa21GGnrnK8+HLz8nizZhWH5rCmXLpG4BCs89ONrWsi7 X-Google-Smtp-Source: AGHT+IEV2TScoV5U0gk+JCSE/6TuIOT7gDP7434MPboQsznm8o/auvcGlGGFMv7zURZ24WPzEpCGAg== X-Received: by 2002:a05:600c:4f11:b0:424:ac13:ee3c with SMTP id 5b1f17b1804b1-4264a3e162emr16522515e9.21.1720113827768; Thu, 04 Jul 2024 10:23:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:47 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:22 +0200 Subject: [PATCH v2 12/24] mfd: rk8xx-core: Constify struct regmap_irq_chip MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-12-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=1375; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=6atl/DrZQUwmw6JNwTSf7L3f3VWfEvhmC/OA+w6bvAo=; b=VDrhdvOEM4a21M5C9PzDGgMYkfiGHRI9khEoolwkWfTbvEmLzU/atnVqu8qT3Hl2LPrJolCco DXFklpE9F8dDWYAFZeupXDJc4TJwL3xQ3mFoCfE5s7U6sfosUQiBSR0 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_102349_178748_384BB156 X-CRM114-Status: GOOD ( 12.61 ) 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 The regmap_irq_chip structs 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/rk8xx-core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mfd/rk8xx-core.c b/drivers/mfd/rk8xx-core.c index 5eda3c0dbbdf..39ab114ea669 100644 --- a/drivers/mfd/rk8xx-core.c +++ b/drivers/mfd/rk8xx-core.c @@ -531,7 +531,7 @@ static const struct regmap_irq rk817_irqs[RK817_IRQ_END] = { REGMAP_IRQ_REG_LINE(23, 8) }; -static struct regmap_irq_chip rk805_irq_chip = { +static const struct regmap_irq_chip rk805_irq_chip = { .name = "rk805", .irqs = rk805_irqs, .num_irqs = ARRAY_SIZE(rk805_irqs), @@ -542,7 +542,7 @@ static struct regmap_irq_chip rk805_irq_chip = { .init_ack_masked = true, }; -static struct regmap_irq_chip rk806_irq_chip = { +static const struct regmap_irq_chip rk806_irq_chip = { .name = "rk806", .irqs = rk806_irqs, .num_irqs = ARRAY_SIZE(rk806_irqs), @@ -578,7 +578,7 @@ static const struct regmap_irq_chip rk816_irq_chip = { .init_ack_masked = true, }; -static struct regmap_irq_chip rk817_irq_chip = { +static const struct regmap_irq_chip rk817_irq_chip = { .name = "rk817", .irqs = rk817_irqs, .num_irqs = ARRAY_SIZE(rk817_irqs),