Message ID | 20240703-mfd-const-regmap_config-v1-1-aa6cd00a03bd@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 4DE54C3271F for <linux-arm-kernel@archiver.kernel.org>; Wed, 3 Jul 2024 15:38:30 +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=7BZW6Clmw00UsBy9Or8rZFzpnqAmpBKvhrxIEAj2Ylg=; b=kQIZ4VfACnEYTvTHAq4HsTglvj ZJZEQCiPHI8mFGJLCz9pgTITXfVNBMZpKiAvu8rlJPmkANx9FD5PSZLYL0bskZmTpPC0SoWW1lhoK qqlS+P//FRlDARVWcfu/TJMJpjnmq9hzCt54cPo4J2hS7mTZiFJaEt4Dm6+EmyMnNFYcMFHeNQQ2q 9NFv2vj7myZEBifVl9QBGczAZ0FZ5L2BxJFqTHROhQ8m10BiTRVxS6JlUd5Fc9auzIKtsratTeQBY hH1nVhwBA7l7OQ39nOH7lb8qPWUqOPAH7/NQaj10hXG2rmfr6VTgbhaYv5wv/2o3tgzMxeHumfKQR OAt90I3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP23o-0000000Aho3-3YEd; Wed, 03 Jul 2024 15:38:20 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP23T-0000000Ahfo-3GbM for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 15:38:00 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-58bac81f3f9so2803038a12.2 for <linux-arm-kernel@lists.infradead.org>; Wed, 03 Jul 2024 08:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021078; x=1720625878; 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=7BZW6Clmw00UsBy9Or8rZFzpnqAmpBKvhrxIEAj2Ylg=; b=mLv9sPOa2seLnrhPQ4FyhngDUVIheqpf0KLncLUGYy2OfVU3F+OwzH+cKnrbmTjJlf apNMnb50eaTtaWO5ONdGF0kWz36lULVNU6LfK0HfdzbxduBGdMfJ7KcJdPrWzdskX+e7 0D+ge9E6Xog1A1Wr0AVvwdZL1kTFYwiC7fJLAIKxbZymynlaFIfADRmlN5dhfWug5tPO CEeK+oWkYbkbH92o71E7MqviYnUiHOpsaGvAoDuy+rBmgzah+fyqPu3b6/6JF+XKgR5e EsCg5lHo8AB5yI6fPIDcbIJcM/Iew/q2auDAczXPUOui29x3+WrWnVzVL5SRPeGKYIGt IbKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021078; x=1720625878; 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=7BZW6Clmw00UsBy9Or8rZFzpnqAmpBKvhrxIEAj2Ylg=; b=kPQT23BX+N+ImrgyABe7R1zGhSN5rC04z+8n+Srez22xPgxct2e+wbnGwUvVyQqx/b Gm2UgApbkat9+neIW3CqsXvH5WnhSEQFTFqJ496D7FLe4Vh+PsbAGDzaNXFZfmIyM9DO pztfPCs8rPFVWvsHOTQYtzrnIkf0pOXXVOFW1ptg6Kn9ThwWHIzMagGGmndShPxVW5f4 +TjY1LAfUqCizeCQZRDYfXYblLdAUlrVX7Y9b2yB/gyuFqGMGGsQY5sbxqqgFdobboQ1 cgCZMZF3N4mx9k8oke0CmUVs04lIfYO94ciGdNi4hCh9yD5knuqD0v/ATD2cU/e2nIr7 sWmw== X-Forwarded-Encrypted: i=1; AJvYcCXYN3BQhN7UT91gwT92/D0D6GlkmiqKgE+LlW2UiNTczBC0vVYkPNcGprTsrbVGqiAfe6HVc5tcVd1SiRGrR/+awuK53PUfjfTQTQzIdOWy97FDt8M= X-Gm-Message-State: AOJu0Yy2N+05ACSq2GcYsfmkzHGYPWgmJ+W0GLRHJQRuxUHMSYbWpayL LM9fPllBA/BdLuBr8A1yIf2MkCuRL/YHYq6sPNbrqvBN0ANgishr X-Google-Smtp-Source: AGHT+IGFCEGCVL8xe48SJMKTBOgWG1qXrZGAA6LbS42EdNNuflIBA1IaCbstX5MqqaIgbYZM1pm5bQ== X-Received: by 2002:a05:6402:84b:b0:57a:1e0a:379f with SMTP id 4fb4d7f45d1cf-5879efce90dmr7971249a12.16.1720021077494; Wed, 03 Jul 2024 08:37:57 -0700 (PDT) Received: from [127.0.1.1] (91-118-163-37.static.upcbusiness.at. [91.118.163.37]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5861503b4c5sm7119512a12.93.2024.07.03.08.37.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:37:57 -0700 (PDT) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> Date: Wed, 03 Jul 2024 17:37:34 +0200 Subject: [PATCH 1/7] mfd: da9062-core: Constify struct regmap_config MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240703-mfd-const-regmap_config-v1-1-aa6cd00a03bd@gmail.com> References: <20240703-mfd-const-regmap_config-v1-0-aa6cd00a03bd@gmail.com> In-Reply-To: <20240703-mfd-const-regmap_config-v1-0-aa6cd00a03bd@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> Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco <javier.carrasco.cruz@gmail.com> X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=1046; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=8qNQgtXLskJ3JD7MfZcxgVkS1/WPuU7p5nRkqlB17Cw=; b=tA0HRKlqggTv2Fd1V19K86G+Yyi45xWEVdHkWl7kQMrbRuJ6OCFOtxuinqMC1lblNZPbVt9pP aAkD4iyxYcuCXevg9WBtFHzkib+xOP+J8NejZoUYzN5IZtAIKb803LS 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-20240703_083759_869319_AC53EA6B X-CRM114-Status: GOOD ( 12.35 ) 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 struct regmap_config
|
expand
|
diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c index dbbc4779170a..5e55c6cbf5e0 100644 --- a/drivers/mfd/da9062-core.c +++ b/drivers/mfd/da9062-core.c @@ -470,7 +470,7 @@ static const struct regmap_range_cfg da9061_range_cfg[] = { } }; -static struct regmap_config da9061_regmap_config = { +static const struct regmap_config da9061_regmap_config = { .reg_bits = 8, .val_bits = 8, .ranges = da9061_range_cfg, @@ -576,7 +576,7 @@ static const struct regmap_range_cfg da9062_range_cfg[] = { } }; -static struct regmap_config da9062_regmap_config = { +static const struct regmap_config da9062_regmap_config = { .reg_bits = 8, .val_bits = 8, .ranges = da9062_range_cfg,
`da9061_regmap_config` and `da9062_regmap_config` are not modified and can be declared as const to move their data to a read-only section. Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> --- drivers/mfd/da9062-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)