Message ID | 20240704-mfd-const-regmap_config-v2-3-0c8785b1331d@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 79A7AC3271F for <linux-arm-kernel@archiver.kernel.org>; Thu, 4 Jul 2024 17:24:29 +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=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=0LN/aEeKsF4zt91UW3K07EP6jh FRa/ONPhRMc+SMs2g/nFysEpRDjvHNBA2tkYKob2GHUOQQAEZ4OfR3jkb7D34QlzLB6QPDXd4HYyy qxZbMOiKnGUqBAtjEMXbUdnZuMKX1QdDuZZtrzi5UJXjcEppVawz1fj9NT/SToasKaZLTbJcZlu3T vuWOaffguK5SOONnuKng4SAWRGpe2VojrAWPUsqbPpTiSU7UzxOteKHf+sa+EVxB5G+7aez1OOCi1 42JTCM7+O+pYuvy0jznCQRcmP3ovvhPCwXJpyApxVkJj3DXkIDOgg/grEgSb160xAoOwp8DqVBYb/ wlM/ofKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQBu-0000000Dyin-0EV4; Thu, 04 Jul 2024 17:24:18 +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 1sPQBB-0000000DyMx-23wt for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 17:23:34 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-425624255f3so5735265e9.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 04 Jul 2024 10:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113812; x=1720718612; 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=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=P4bvb10F2InQnfXOi3CANfN3m3/wRcxzBA8R0xT3Dk41cYJ7qZ6BlTL+mscCR+XFAX 0Ksx/R1L6GOHJNoP66mo3kk2xNsKtKk2ndwXJ039LgsFuHArG/6kVpxlS7W3ExwxiFDP eN/PLuOp4kDbVVqmpIAMaYSSmWTJOBcQq5X9gn6WmkO5U21Ee/ZjOr+tQIlAusj24Sd8 ZFh5IOfvOSZ+4XVcFMWdWwF6BngTI6YK30BBr+jNoiEdV/iE2aK8NgVZn99/HpVbRFSL k6SliGz4OwfT/rar4jifXbDOXsFiLgTPyHDrYwkhURkDFkDYocGROkqSquqkep3pm4aO JcZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113812; x=1720718612; 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=M+SGNEsXbL97x+/CVxCXK+2nldG1TcI8vle2Sq9kOQU=; b=JSfk8kGJ4uYFLBhxD3zXOT48x6+SBKb15LUKNnZerRhSU8ACMMtrg3pQnBjhIv1R90 UoFTMPyAFO7DtOY7beBKT824veSc5xbxl2OBWilt5jhorBshdAg1s3KE8DoBQKw7u6WD 3MRPQ0xfyOGW9Ut++5Alu/7KFy0VPKcQtqOqr3SSxL5helli14LDAKtEc8zt2voNwOk8 gA039Pith0jJ8pWG4ld9BCjTrra2MfjnevVvw7zu6ApURCgDuLnIqlHSzpcSjwIu8ac0 2DG79kStsTSHpnJeuhQeTC5jqqvrVv/ckryyKMJONRDbdCfbQYMbrkWQA0LpHDz4Ce++ 4Czw== X-Forwarded-Encrypted: i=1; AJvYcCXjN7St/M01M5qSqW8Ui843exAsHiIRNecQZk2GzCCCkUvWjG++S/6dk3lYmeuCmVdwWTWrt93c9foIVdnOjjQ6qnRpGGCFgATbGvF6b8KWHZEpcew= X-Gm-Message-State: AOJu0YwK7egLmiFKMN7OB5nWhMahG59/o4yMBBnLQGusiNC3YU5LvB+6 MA+UdtbP3HBp4SfLniLW/RPYawTbpGmN9SfhSGKRrtoSJWFPLP28 X-Google-Smtp-Source: AGHT+IFlCPtJM1+sKYumdZ6gx2ub+4aVrMbZyr/O80pjxoUEqlBsGHADGvz3OYhd0xVYDGSg10WjWw== X-Received: by 2002:a05:600c:3b9a:b0:424:a823:51d8 with SMTP id 5b1f17b1804b1-4264b12e38emr21428825e9.11.1720113811696; Thu, 04 Jul 2024 10:23:31 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:31 -0700 (PDT) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> Date: Thu, 04 Jul 2024 19:23:13 +0200 Subject: [PATCH v2 03/24] mfd: hi655x-pmic: Constify struct regmap_config MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240704-mfd-const-regmap_config-v2-3-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 <support.opensource@diasemi.com>, Lee Jones <lee@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Matti Vaittinen <mazziesaccount@gmail.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, Marek Vasut <marek.vasut+renesas@gmail.com>, Andy Shevchenko <andy@kernel.org>, Tony Lindgren <tony@atomide.com>, Tim Harvey <tharvey@gateworks.com>, Orson Zhai <orsonzhai@gmail.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, Chunyan Zhang <zhang.lyra@gmail.com> 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 <javier.carrasco.cruz@gmail.com> X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720113803; l=764; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=8tMNatK1sJi4q8SWgKJTcOEOVd74qA+MZpB63bLVf40=; b=YEtCZD5EBY7hxN5O+Cz2f8AlLr9THmWMnZa7wfo/k7lB8vW/T2U22+sMAVMPb6reODd6iYCWg W5ZrxQ0oUYyBTml5t9sZtOXTgwG+laIgc5bGKGBmbIpYGyv23CK9zCe 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_102333_542723_3A7B3AC7 X-CRM114-Status: GOOD ( 12.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
mfd: Constify read-only regmap structs
|
expand
|
diff --git a/drivers/mfd/hi655x-pmic.c b/drivers/mfd/hi655x-pmic.c index 042109304db4..5f61909c85e9 100644 --- a/drivers/mfd/hi655x-pmic.c +++ b/drivers/mfd/hi655x-pmic.c @@ -41,7 +41,7 @@ static const struct regmap_irq_chip hi655x_irq_chip = { .mask_base = HI655X_IRQ_MASK_BASE, }; -static struct regmap_config hi655x_regmap_config = { +static const struct regmap_config hi655x_regmap_config = { .reg_bits = 32, .reg_stride = HI655X_STRIDE, .val_bits = 8,
`hi655x_regmap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> --- drivers/mfd/hi655x-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)