From patchwork Thu Jul 4 17:23:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13724113 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 51A21C30653 for ; Thu, 4 Jul 2024 17:26:37 +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=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=jMw6mjHY8iS6WufDeNYfvL+AyO 3Omfkqt2L3kYLiiV4jUrnTqpFuuIYRYK69y47SEyCB5xbEVQoS3SjHRveb6+ZdFpHeAtMMbf4e+x/ 95HHlmxix6tL7x/tdnIkaPPiZA5T5kgvTTTgLx2nax4SuIk5qMCyjON0HVSJuwc05d2QQ3WuCOVX8 qpDM64F828choXChiZ5mmu8jolRC3HwlSgxiO3n7dab/HGC7hrJVjKv1UcE7TQgbzqdNXcXm5pndG D59v12aQSy6Flzz0NWNccpHZ1FjG06NUXLJhH+/Oi1SHkBtpQi2CJnQq1/nAdFUnbFxVV+FMiTsWh sddTtYfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQE0-0000000DzkF-1azU; Thu, 04 Jul 2024 17:26:28 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQBU-0000000DyTy-3cG0 for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 17:23:54 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2ed5ac077f5so12325501fa.1 for ; Thu, 04 Jul 2024 10:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113831; x=1720718631; 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=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=nSUXoDtALGZKeZzjrz7/q/OiZoK0cfVGQeEpsjGIVRpH1et81afag2vb5uaIMtisHB VEWQFkYf4shPNGwEOw77mW3n3zRU4bDKJmG1jS0wKw7heYk7ta9PLdxRnY98UQKBM4GP 4pUQ3IHWMpe+m89mYJABMN6K0CKXNl+CQw/nqtUkRMMINBIxUjYSZooJ5dHMMQklDf2P EjgVryImyj1huwRcSXgFQ440Hqdt7dejiL8YNjsvAj6GVwi3jR1ksUcwB0XmH4pxkVWd NGhU2+XwSzwRcAUAHjYpPYs60cl/Lr3znylzxchbHSGGsEEdw+EiqfmhTbamQme7o5ny xJgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113831; x=1720718631; 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=BDX99PHFeeA7rra4ax1diB6wMDKVJk8jhzB3Yt4YbLA=; b=ftGVcGG72c2ZCuvnkkNA/Q095nqyEzwwQyoqjv7beYIMSPygGUBnAoXiCkjG8fLhX6 CYiDwrkRROmL/UX+yUm8SzJjdpqQ9ppHDz70VGUQuPnepDt8WuiX/PBmkmn/CJCzgwNg kPsuKaN39cxE5sJDSBi5tLrgcH3GN4QDLdh73iMXNJUh7wPVpHgRXWLc5h3pnRB/pfrg ErZtDHDuK8wxnuGdF0nUFkTc8LGuNS0l+0GDe6v/8ufAptLXl6ftXKcKeddzlo/atRdb Xrq/HohEvAAwyvmtsSFoKhfYXHpbwzibBsMv58eXQbuV3/96kCedJULv0DAdEWtwNXyl U4GA== X-Forwarded-Encrypted: i=1; AJvYcCUjuG3nSnHwqOyCq4gi/BWFF/ScMkLx/m8kU1TgZocI74NpGV6J6GxkgpJrXRkIP3v9/xe0zNhPU1CvKd3YRMNgQbDQIDh5XMWRCewVQHQPPqBnnXg= X-Gm-Message-State: AOJu0YxmEURMAqc1LYwx0KP6JKe6bSx0twePhWlbHbLnuh9dzQ0MunuR YEkxSp8tVRJNiZkjSRalUP4aaxZhmE4ybtyJm+oq5AiM4AIjaiqqn6S7k6qt X-Google-Smtp-Source: AGHT+IGDGHdH17TOfyl0AHtan3E3NGyjY4qK7qOF10+VJxCWKYz0/N0xnRTryy8auCQrIvDBTXtfNg== X-Received: by 2002:a2e:8197:0:b0:2ee:8d07:3d51 with SMTP id 38308e7fff4ca-2ee8ee14ebemr13988791fa.49.1720113831148; Thu, 04 Jul 2024 10:23:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:50 -0700 (PDT) From: Javier Carrasco Date: Thu, 04 Jul 2024 19:23:24 +0200 Subject: [PATCH v2 14/24] mfd: rohm-bd718x7: Constify struct regmap_irq_chip MIME-Version: 1.0 Message-Id: <20240704-mfd-const-regmap_config-v2-14-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=811; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=OsP9B5yntvy5o00C9iqf+d4I7ESMIoxwrR+dXi849M8=; b=mLqu5gnq17+Gs9kyUk2dMV6SUWx1s74/GSw3goKe52OxLCSMhnjCXIIQ5PFkb5Bd7wTcal4Qx gh79QNEK8H4DCYsaff4hWqDMWmvsuEIF6+riEhYKIsTEe+50wcbPUVj 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_102352_939984_99A9E1D4 X-CRM114-Status: GOOD ( 13.06 ) 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 `bd718xx_irq_chip` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: Matti Vaittinen --- drivers/mfd/rohm-bd718x7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rohm-bd718x7.c b/drivers/mfd/rohm-bd718x7.c index 7755a4c073bf..25e494a93d48 100644 --- a/drivers/mfd/rohm-bd718x7.c +++ b/drivers/mfd/rohm-bd718x7.c @@ -60,7 +60,7 @@ static const struct regmap_irq bd718xx_irqs[] = { REGMAP_IRQ_REG(BD718XX_INT_STBY_REQ, 0, BD718XX_INT_STBY_REQ_MASK), }; -static struct regmap_irq_chip bd718xx_irq_chip = { +static const struct regmap_irq_chip bd718xx_irq_chip = { .name = "bd718xx-irq", .irqs = bd718xx_irqs, .num_irqs = ARRAY_SIZE(bd718xx_irqs),