Message ID | 20240704-mfd-const-regmap_config-v2-5-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 01697C3271F for <linux-arm-kernel@archiver.kernel.org>; Thu, 4 Jul 2024 17:24:53 +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=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=UvPk9Q+GqDtP2yGuhHEohfRv2P +PrUI45QKn0Owy1H+l7+1bjM4VlSe6z21VPN8DPQVYI/gVZCTEHan/ndngYl4YzdTPSZtuHDxSSa6 C1M9SQOB9uUDiP1GJFgAAI3+pD0EYksrCalydmkM8cGYj7ki/e/NvKBty2gwva4lhaJOkib6bIdXC 1St/oPxyQjri6HdVttNDlPF6b9XFzk/ON5GmiTfBTc7vnqXiWsiNrXL2t5BGPBGqqn01QWtP3hVk1 AzTXebSxWa6LVNdwjPztAZTeazXqnO/Rd1N6K/I6Gb5Evvb/xy5/ogNjiVJ0kK4ns5C5w7PJ68zuh 7/1DYc1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sPQCG-0000000DysY-1gpb; Thu, 04 Jul 2024 17:24:40 +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 1sPQBE-0000000DyNf-2DQ2 for linux-arm-kernel@lists.infradead.org; Thu, 04 Jul 2024 17:23:37 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4255fc43f1cso5759035e9.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 04 Jul 2024 10:23:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720113815; x=1720718615; 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=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=BEV3kZZZmVEzQ7IMvfAdMGkG9O7K1mq+mLOYBYC6FZJ7px98fym9FfeQ+ToCiRO7sx OMC9eO7s0eZzyTGiFsVK3lMaI128nvtcBo97yGXbuczHyJ7hdwYDPNyOsut3TwCTAWdz KKZIuSHKvkwfv2K+yBL3iGsaQke2weINyoiq26lP2CGc6Tzk/eS02Q1XHoxSuNHBfUyI CSJ8WHdEHCr3Crdbfp0XS5dBLtl0nPVQ2qsaW6xOkl7Yj+dHg+Qq/QVTs9nNOSeBAeB0 THJIneT9PK8wIrTrJvthJFH60bxz2i+vO8uTusbzkDYFIrm0QG2fuhPBwN8Q/Xe65bNP J0dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720113815; x=1720718615; 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=1DvuUcSFwNO6KhZ/DbrjWlR0SnoFpdvXYRD32tmG/+Y=; b=cbaDpgxFMvmf6l/4RtI/6s0Q3RwLbd28HzNc69++H5mW6Xa1zEL/r4ZLcuO1ZjB8nL isvVtbdJNn0UN8iLE2HdEZ6ytyRvLGrCZjc7KGqis4bW2L1QlNIC2EFRDtZr7vPE33o3 Cu3EjgsB3a3IGF9MpTqPWIsTy7Am2uuCwDRzxo3pV8WsFC+u1SHr4osHPofTIGP388fw bbTeH0wQK8zsfCJCYhY9L1Px2dBSO7G1K44LyvlbTvPxrmCCHVN+9Cas6rZqdXrCTa4L wumgZdWu2P9a8YoMOZJxAYVAsN6zosohEjHp3Toy3eCqckQNcW5/LTJGyjJ7/HaS3eZX b1PA== X-Forwarded-Encrypted: i=1; AJvYcCVS+7Hnxbbw4jXYE3X6hH9dDUeFtbhCnx4saRZeJmS6myIVVpwGUaSI26t0dadHRIv8HN0oyOjiLM7NFpw2a10jjQSXgmODbNlYTsLlGTZYZhkfA3o= X-Gm-Message-State: AOJu0Yw5UEpRE50W3UOJiTXWuhQC5IKqAAtGSp7TgvfqwVKjOuZN0z4W vK19F3uWLqIqddJKXI9Fvov1RKSR7eDiyWdjRbaj3EjpJG+1RjUZ X-Google-Smtp-Source: AGHT+IEc8Rc1QEIwVEXfc7Rpogc9rQkSUkCFNEJZBG+Iw/peGXh8S4XAZEgN4bTVwF0KQdZg/ByJHA== X-Received: by 2002:a05:600c:3b8c:b0:425:d61c:77b1 with SMTP id 5b1f17b1804b1-4264a469699mr16561885e9.35.1720113815196; Thu, 04 Jul 2024 10:23:35 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 10:23:34 -0700 (PDT) From: Javier Carrasco <javier.carrasco.cruz@gmail.com> Date: Thu, 04 Jul 2024 19:23:15 +0200 Subject: [PATCH v2 05/24] mfd: tps6105x: 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-5-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=722; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=A8h6qBLOlBAO4Nf5Z1u5nWAte8uqhP5kHvTzaAaJZ+g=; b=ZiS7T6T4IQrp0Q5cFzDm9V7HK3fd//OdoA4bcGAGfdiPsK9NjQwbEsdd/FBGaaLb32Comgql0 LQcTPmwFMOLA4zRWYd/7xWC357cvLXcrja6ylouWSP+uIMonhxpIKWF 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_102336_574733_F8F180C4 X-CRM114-Status: GOOD ( 12.84 ) 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/tps6105x.c b/drivers/mfd/tps6105x.c index 0da1cecb5af6..e2f6858d101e 100644 --- a/drivers/mfd/tps6105x.c +++ b/drivers/mfd/tps6105x.c @@ -23,7 +23,7 @@ #include <linux/mfd/core.h> #include <linux/mfd/tps6105x.h> -static struct regmap_config tps6105x_regmap_config = { +static const struct regmap_config tps6105x_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = TPS6105X_REG_3,
`tps6105x_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/tps6105x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)