From patchwork Wed Jul 3 15:37:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722471 Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 605EF181B9E for ; Wed, 3 Jul 2024 15:37:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021081; cv=none; b=nAJQMmib8zEbeVQ42bWMveJXTqpeqyiz9LS8GZYklqZbYMky8Xn4xvuMiAXF/O+uNLXYdsQ28B5uXefW5Y+U/HjTeMtjbqar4ShdhtaAy+jZI1SKy2maj65Vt02lhQogh/YLc8qJk3yUKgkxSUNA+tFLnhz7asP2qXgYVk0IyDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021081; c=relaxed/simple; bh=8qNQgtXLskJ3JD7MfZcxgVkS1/WPuU7p5nRkqlB17Cw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AydyxuwNVHJkydBbqcWGNc1z6Jr1PVsdz/Cwx1QpMhIdXWZ8CUA3S/E7ZQe94aBBzGBz1F+dg0JG/BOB85pTCyVJohf9bvpElaSYxULqyacIcuslqDxbPPJKiuHor1jeO6Nyct6EFG4ZY0Mo+/Yjbo+j6E//5vhtrsgXRumNYLc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aT7Hifm9; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aT7Hifm9" Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57cd26347d3so3917915a12.1 for ; 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.linux.dev; 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=aT7Hifm9aowi6gmZXqiEtLsGkp22eAASU3OGlrp2w/9zSzLpm0UhX4H/TNDib0cugu Wy3w1KTBVf/KORLDWVik6wwjWdap1NvxBMrGPlKXrhuaxaKiXdgJh93v9KBesDkjWNwE LzXKOjv4zWKQIhx5bLTeMYG+VbT1WwlPahbHR+xXxKDumWFd22gTYh3OAOGrrJThWGyA liyWsJTQ+v1pHAYwc+6dKzXvyLIHU8gV3EreylDKr8ali2fDQLSOZBQQJHLJmM95AaMr VACDAi+dmcqxkKI1dnPx8NZUGwJBXQFahMD3aRLrKg92knMHDyzLgl/vDqQ/H/gfRfBX tyKA== 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=Urwf1XpCQFI4wXVFJLgRRxMp9Agftk4q/Ry+wNVmDIYGHjHPA9gvv819XgxUdR+02f N6NWm0N/IiHil4wqPQNIXqbqoSudwbwHcMPHnOabqYFdhqgSNR/X6REs/MelB351UZcO xISg9wW69hjSi/HXNaG4PYFuDQZqrpUBcUXvSkiJUAax2Fx6WOwAXYFn6cbQ/BSH/+gg YPwkhJG+ObVn6hyEgUVytDESlxm/DGF52zM/+QHi5MONyxipNLvr+9na7j+A773VfJbU 5NWSC8Q3kHZm1u8G3GFCnnwxfyGQ2cmoeWMwaoMFaD7oSX1NF0/qfO2MgZRY41QNeIBJ TiDg== X-Forwarded-Encrypted: i=1; AJvYcCWW7GwBMOOn+NzLmeJkPFbJphHZpw+B8M7rdkhT1CK/lHsmW5GKb6kH90LXdZmJ0rqNIhwvZ5wckdweQk7J1jROuEEy X-Gm-Message-State: AOJu0Yxy4OwLodGeyvqKDV3Ebm9hScVX+WXL7g8WGFGVGgqxjv7txARu rCMbr9q5rY/aMoOXzR6lPu5/2J+Oi0+uUIJek2L06iLTmzCcdO2NBt3EkfV8 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 Date: Wed, 03 Jul 2024 17:37:34 +0200 Subject: [PATCH 1/7] mfd: da9062-core: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco 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= `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 --- drivers/mfd/da9062-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, From patchwork Wed Jul 3 15:37:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722472 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9374F181BB4 for ; Wed, 3 Jul 2024 15:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021082; cv=none; b=E7yCp6ZBuErX7ozCYM2jLcoKktoPWaZXx7o6osaqOJbrmEaxU/pvf/a3FXwCGx22+naVBxzFc9AFkhndSvcwJefejKdjkQcJdT7FDZh95SF3ZaG1WE1TV3TsX0b/Ow6GVp9aIfrlnpXw1tlQAcZoCbnCRgcJBi1vTtEz6Mn9Uqc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021082; c=relaxed/simple; bh=U56saMjIfEuTsQ+HGnNS0wH0SrTxaY1/OZS4zOAPdKk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TWjBGJDBiLd6+jNcOAHP4LLOfiyjOEb6Ww+pnrSIHncHt+NqsDwObvYHMDAXPzlFIEesaEczK75UERNBYf6b4WnZeuPRi1qhkBI+w6VDCNDX0SQ6u61Ic5wyvW418HfMJL/B/ZPMfdxwY1gokQg8yC0x2ZltA+g4uGNEhaBHKBY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Itueq13B; arc=none smtp.client-ip=209.85.208.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Itueq13B" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-57cd26347d3so3917950a12.1 for ; Wed, 03 Jul 2024 08:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021079; x=1720625879; darn=lists.linux.dev; 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=lKi2JAqKWrjfu71x3mrudLF5NIxjHTPRhhtNA6MHl8U=; b=Itueq13BuZfJwN3PTGcbTV2XYAevG/alRd1QOE37gVoPwJ79KEAq19vTRGhn/vvjJJ SVIN/3P/28dTx2cYqZwy6euXmayNK6Z7wevwmlEGXF9OQsqoxLliTFkaxD1V1b6ox+ak +ibHRPPHZ7jEwbtkn1Z0Ci+W7e4vTTw2iFI664vgu0ph9gKEfTBSj+o5bnP7awzxdZEO 45KRK3tuhYF+RhJcXetE2U2QEpa5GT0wstTdt0clFm1V3Zloo++LUHHSd5f/pAZX554v QE0oLTtfs3ESVXmhOaDruISbmlkBge6asZgiG3T7wXlkFobdC6yyp6IS5E2cUiua8nlN 06iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021079; x=1720625879; 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=lKi2JAqKWrjfu71x3mrudLF5NIxjHTPRhhtNA6MHl8U=; b=bL2lu4wctxt9w/dgi0BPf5PH10DCa+XrXKIzioX/TKN8NbM+kWuzhoZmsOTc+x/4Ul EXaDk/C+8nPz2SA/Qyxsy0VYFri6XTZ4OSM88NcRKro0cmHLa1LxTitMd8+j0+nCUwgv Afr+JUQ8WSBgCgpKyZ0uzKEc//XqiafVxoMB5ef1nFb1p1dkXHvi7ef3VqqwnyFLq6wJ Cx5dNjf3XoOBxd1WSFCRySHtcAIQgNPzizri3/mRXaO1bu4Sl0ukyq8rIy10KHHe5bYT EkK71ouSF6OaOBAspmjKkF6OGWchUIvoFiz6FiCmRXmeuHCjy3k6zcPtKZzRPzBocq0F hrQw== X-Forwarded-Encrypted: i=1; AJvYcCWjHSccOnQlA/D1QGxSKSZFZho0acdt2L4ZvLKl/SNLkQGHNS58yfbmmzqGoQdXuwY4L2IqP4xynLKdixX0BWSMuq81 X-Gm-Message-State: AOJu0YzqgLoValoll6ezHQuEmCBihT+WWBf1/sEKaLXoNUyAiq8FN4yB SEHwms5g/h5xlIKVj0BTNtm+ohANTdfakYcYs9Sb0UaoOfeWgCkY X-Google-Smtp-Source: AGHT+IHbzg2lqQpiAO/jvzPTPWoOyHg/cz6NXGW5jL/Cnfvihh++f0NocK6eSj+lGz0hwsNrRyIpaQ== X-Received: by 2002:a05:6402:2690:b0:58c:804a:6f0a with SMTP id 4fb4d7f45d1cf-58c804a743fmr2085903a12.19.1720021078878; Wed, 03 Jul 2024 08:37:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:37:58 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:35 +0200 Subject: [PATCH 2/7] mfd: fsl-imx25-tsadc: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-2-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=754; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=U56saMjIfEuTsQ+HGnNS0wH0SrTxaY1/OZS4zOAPdKk=; b=AVQr2VorHlXjUiqjQdwraVmBCNgIgN/uudSFtafwKl/WtWGftc+dJxM5Zi5gaXQbBfZbnAEuT WSX95/ir/DMAiRLqHReT4craFJ3a0tXA5uvok85xFHdJtAbPvSW6m3M X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `mx25_tsadc_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 --- drivers/mfd/fsl-imx25-tsadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/fsl-imx25-tsadc.c b/drivers/mfd/fsl-imx25-tsadc.c index 74f38bf3778f..2e4ab2404154 100644 --- a/drivers/mfd/fsl-imx25-tsadc.c +++ b/drivers/mfd/fsl-imx25-tsadc.c @@ -16,7 +16,7 @@ #include #include -static struct regmap_config mx25_tsadc_regmap_config = { +static const struct regmap_config mx25_tsadc_regmap_config = { .fast_io = true, .max_register = 8, .reg_bits = 32, From patchwork Wed Jul 3 15:37:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722473 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A69DF183061 for ; Wed, 3 Jul 2024 15:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021083; cv=none; b=JZIkGCawt336la5JndL8dmzflVEDS7vjJMDLlHJxgUvoSUC5VYQHtOA0l1fm7gAXJPhGfFd8ZfhvoRkU7ZYn+9A4xm95j76arM+IlL1hPcmi+zZJAzJ4/9tQo4u48h6N1eHfiBpQxyRYVfdzBeS1kBCu7MgFRijOoQD4ZDrS6S0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021083; c=relaxed/simple; bh=8tMNatK1sJi4q8SWgKJTcOEOVd74qA+MZpB63bLVf40=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=K8ElMbYC3sSLQDgmsxfFkQp5WaRgOu54OW+Hs5RhasfRNl+XplstRCFzsHKubD493elprf15y4aQ3Y9qQQ30xiKK012PLfUaRPBjmh02/7r2SM/l3YICn3pz8cbU48uQP4y6YeUHfXjwh76W6SOOnfrtVyJRc9JCZMPT0oKTxVc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eB4rOXQa; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eB4rOXQa" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-58b447c51bfso3093862a12.2 for ; Wed, 03 Jul 2024 08:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021080; x=1720625880; darn=lists.linux.dev; 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=eB4rOXQa33ZELdAkQLUfjlNt+Rdf9TYMVdKVxsqbyNE6S5FWNp2lHrQTo1kmky6IiH IKv3MfwvKPuc2pJI7lsDphr+G8sFGa5v9DbCMNCd/LFMNjDL2i+KRlyV3OQjQEDkQf/o MFiVcr9AuTkaG7LuRmXajK2feaLpZe4ZG51BfSM9+iocPxW/RgWWt4c4MZnRNMwnxN1v iEeDQ5C8qK+TUb+cW3+3s8MiCsc24g3WY3xf/XDpBypxoxhBkSou07Apmb3MuFbBE6op 2AGGNL9FCo7FVMzdTdw86azx5ircM/xdauZRx6C62kkWbKqP94mH4J8M+XYk8Dxm3mxG qHdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021080; x=1720625880; 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=ThKklCKkGAcg847BCvaT3VrwaitxYEIPoJdWJqRmcdXpZhSQ/KpIq3kmD0k1KwO6iR WNpFi7ee2jyhvgGQPtHvbK2/2qOBBtUXYptgX6XSQhm8K04GiF6RPcGAq5vZnDN5YoWD MDYjgyN0OtQwq6mLu7qXJ3EVsTtbLc66Ru0whVk8wAZjbYupkTzsDXVWiM/szkSIBP2h 0xKOKkYdWXO0+Uzq/N9EaKuq6zOOf70LOq4YHKnuGHgpY9ZOrLFyF+MdEKJI7y+K6E08 ZxG8jOTSasa3LRmonBz88IKS88AF6YXeMbOkrH0IFH427LfWr14JcXEB1s+sYFlXlhkf lK3w== X-Forwarded-Encrypted: i=1; AJvYcCV8JZnga2Ksshc5wDgQgJ87GYlx1XglIiWA8XwuQIAe6E6n2lEjjNtyGT8999gHLXxZf9D/N5NpHC7YtngVO8aKjQmi X-Gm-Message-State: AOJu0YyrblV68+n9NVgQjPL6m1n20yT+RjE37Mdqr131FCs4rBwQeWUB wwZzBVDJx272VJyZC7x/lqdPNU0Uhgw66kR1eRKofQ52MWsl+GmQ X-Google-Smtp-Source: AGHT+IENzhhrUxWbCitwYBlyHkjH3e1TKb3joGsSiXgzBe4l0rhKW78in1ln7eLqEn19G4OtGBjFSQ== X-Received: by 2002:a05:6402:366:b0:58b:9e7c:bcbf with SMTP id 4fb4d7f45d1cf-58b9e7cc15cmr2397363a12.36.1720021079945; Wed, 03 Jul 2024 08:37:59 -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.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:37:59 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:36 +0200 Subject: [PATCH 3/7] mfd: hi655x-pmic: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-3-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=764; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=8tMNatK1sJi4q8SWgKJTcOEOVd74qA+MZpB63bLVf40=; b=AVvXYso+UmdzYbKeaDLFULDlT2RlG/HrJfDW4yf4Ap5vBO1x4//8r97EER+jmE37Hvsp5M2Im SD1uZbsw0NaAUCLo7SRKTTIc07GchzH4N7JRHWV0earYvndaUlks/LZ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `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 --- drivers/mfd/hi655x-pmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From patchwork Wed Jul 3 15:37:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722474 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6E1E181CFB for ; Wed, 3 Jul 2024 15:38:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021084; cv=none; b=f2PvNNUcyoEArZxKjzhbj7XnqrdcTlvEFhFvoOsEo+ukmM1lYMM8pPv1tg8IzVXLnQVQ+09NKyDxmmEh7To9B3+XybbK5jTWW+oKpihVtkYho/QOBUOfzV7grEeRH1O4uIPVf44nLpIjYz+W8Tudml3F+zK00ufNESj4pHVYBBw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021084; c=relaxed/simple; bh=enRHrVnnv2v5OSTzZ1elKgS5KbJVuE9GP9SdZn7OqTU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=F6qcBhXd1e0uvtInNOMW5JgPB4rKIiusk05+oJVsg430/U+ehdNQc4XrINZtZXQgPTg5izExPKkvL+4/+dDG/UwoGNn65XA2v+VFiuw3NHCOqLikwLQZu+L/8fIZbV793Jms0+SvNbcRHrco/HnDfHdEQU1JH8XNdVr0e/JA4PA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dw+NPoPg; arc=none smtp.client-ip=209.85.208.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dw+NPoPg" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-58b447c5112so2695328a12.3 for ; Wed, 03 Jul 2024 08:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021081; x=1720625881; darn=lists.linux.dev; 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=xOF3cIT6fgv4yx2bUJ2liLgQLjKC8cJY9QXkjtPW8ps=; b=dw+NPoPgP4klaClKQwqvZ+F8iH64PXVNFPAPoBS+K+/mGDrabT0kVKPEjtEUwHE54n Yvd8k/85tHS1YXTLb/iir9bnbjkbSOgs8ZHYf3FCNtKaSxia7IYTWMmevdbsi+cphVlV 4lssIp0jRFi5gsXDKtmEMgm7cD0t5X8ERkeAIde6rXh8Imepzp/ku0cIJt4Av5N71z8j MBixkUfQBDl4UqyZLIj8JOodEWQekQrQZw4Oum1ETGEYkLXzCUsRRHPC7wKySUamBpQc kgi2XnpN87cakULZQ4kMcvjmyt4OMQRgi05F+ZCUIHtcUh8iH1uMMmBQBAK7Od+gJH9a kvrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021081; x=1720625881; 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=xOF3cIT6fgv4yx2bUJ2liLgQLjKC8cJY9QXkjtPW8ps=; b=LnE79Bz/X5M1F01gd59SYkTYxltLy8qOqERUaevlk99dGRHew+188p0NUQ6oQptWaK 9qf2ikGsDNY4EK4y4WPIZDKQBvB6kKy+8nChoswMrMt+UINtcnvlGcFbsp4v4n/1m1gl 6ZAn4E5A2cWVql5lJXrOLXwWJ8VQvg3fXQpqSRgjS7ZHSarnPvcrawX4LiVdKC1Jy7KG F7WfYKS5/d+p0f+6mvpr04yALseYnHp/VDiGq0UI0jF9eHINW5r5tywyk7ibY2+HVd7K sajJ/pu7ZON0G7+4aucWLy91wbDVEWWoDAIelUiffK2bctrZTa+BWcr/HAM7VHIO3Y92 c5+g== X-Forwarded-Encrypted: i=1; AJvYcCXUrsv3GJt9lkG56qOhCvSpGKRoqPY6uyr5psqfqxhhHWBDQvJ3D/8PgJKzmFSqv9WIbHGo/PH40eGMr8CRk8S0/37B X-Gm-Message-State: AOJu0YyKwrFmsINeyGwawtiuuSpb1tW4ewG2fHtKLGO4cBpiUxZ/tlG1 SUe2u/Oqfd4zTx4Rldq9UmY0Cw8Walzrpj8em8SQts845EUYf2qw X-Google-Smtp-Source: AGHT+IGSE4aEWfxmeppRozJV+rmVgbv6IME6lttf+K58LZUqL3dz1V1l21Nou6E9t0oENUhRbHfj0g== X-Received: by 2002:a05:6402:2711:b0:57d:788:aaa3 with SMTP id 4fb4d7f45d1cf-5879eed8ea5mr8336189a12.8.1720021081125; Wed, 03 Jul 2024 08:38:01 -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.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:38:00 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:37 +0200 Subject: [PATCH 4/7] mfd: wcd934x: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-4-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=720; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=enRHrVnnv2v5OSTzZ1elKgS5KbJVuE9GP9SdZn7OqTU=; b=QbgK/RJ2y1AYAvxFVQHd2CneM97DgD16f6V7hHZQ2LSL3bcRTs6LL4tfSPiuQQedys5isuUHj DiMaxpsYltFDLjKM0vuY1pxsrjgg9vn8yRsJjrNWK6Wn57TY+mMo+dC X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `wcd934x_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 --- drivers/mfd/wcd934x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c index 7b9873b72c37..fcd182d51981 100644 --- a/drivers/mfd/wcd934x.c +++ b/drivers/mfd/wcd934x.c @@ -109,7 +109,7 @@ static const struct regmap_range_cfg wcd934x_ranges[] = { }, }; -static struct regmap_config wcd934x_regmap_config = { +static const struct regmap_config wcd934x_regmap_config = { .reg_bits = 16, .val_bits = 8, .cache_type = REGCACHE_MAPLE, From patchwork Wed Jul 3 15:37:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722475 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4A091836D6 for ; Wed, 3 Jul 2024 15:38:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021085; cv=none; b=iHHhgM32UXrRra1CyNenutKCcBwd7MhOPdrgQf6M1PK8E8E2M6EDdNHuHRmvDvACPrRmKxiQHDCyj8FrgMllfT+T0NZSV4mebpXN0yZ5IUC+LtKKSv/EMrATbLuEVVwGabqsv27MXBc81LlLQsnUad7oZEndFCRLMc9bWE0e6EU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021085; c=relaxed/simple; bh=A8h6qBLOlBAO4Nf5Z1u5nWAte8uqhP5kHvTzaAaJZ+g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oiRgaQ0aYgqM2keIOHeIFMTbv1Hs8DLAYVLmmrZXEZYtM604fC6Psau5qsMQi5ZIojCyQ4FK0/ng/njFapDuIHTF/sIctDxu1ay6Hf0mdm7Ny0e0JxWO+PGTlADd/yRDH16fGBZiaogEdvq5HTCxGpZQSk/duOKb4fgF18QpHns= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CiL1bd6E; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CiL1bd6E" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a7541fad560so255867066b.0 for ; Wed, 03 Jul 2024 08:38:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021082; x=1720625882; darn=lists.linux.dev; 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=CiL1bd6Eilgv2PvW10FIwZQu4OZ6u6nQ0nFRNsBJA2ofFasKe1m3sWygt3ObtZE9m9 hMCUWToNHTwRHI4Yll1vE2facuvedSmdc5yYCVMfQrlA8JdqqLc9BhhYL1rsfp9H61Lo 4Ivnpgbv5uwYMLJg/r57qIdmNMJ5bWwaG5+dHlMLxg+gXnh6uq0vNBZFSJEsDUWdgNOE RFxN31TQj85rLSOO+RYsb+XuoV97nxSChm8gszjeufYZt350PRkz/Re9B19Kz9LYMzKI 9anxJEdOtyd8fK6fwUKh1/T+j5I19gsE86zpMv9TWM8eM0Cglv0WI6oIcSby77Gz3LKO uqIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021082; x=1720625882; 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=N12B+H2X6FdwYeFqGEDKJ0jMbigeP+88U93SDVyH+T+eKsy6y7ImbiY2IzbNJQkAAl Fjhe6ojvJJtOvAhuRsQrbEet3vZK9LXNjDDAt79IYVjJSaTwC1b7K2zznY2VS/9H7Nfm 19UzeQVDTxd9cahShP0iSvCQprq9E6yhUnB6owja+u0DL2lJ2raFToHP9AhZuUBjMNVF wW1e+AtUdnk1y2jnb9JsVqxh5AwGnVncNekRpm9sKc/djT0CIFQFieXs+6bPmK++IKMS 4jxS5xTop74QjNVsx/PBOR7jvuCKYG6KMnEqfAP4yTTMjbyxCmyb027xW8LEyHiYOCZj 4IhA== X-Forwarded-Encrypted: i=1; AJvYcCWcVElqc/3hMY3nWiXFh80eJ7Or1l5A4RNHvO/pCI5UYdb5IVRQzMwaIe4UVe2CcaDdStxjtnTF4Raw+BH5omcjYrXr X-Gm-Message-State: AOJu0YycCxGV4wTRgXEc4dMUXktSWCGggqamRRKh5Szid1pDNyFluBDs 9GX67lYCYoyatPD+kMresUSLjlCwstXfpdtUebjW/pnLlg9OUMw2 X-Google-Smtp-Source: AGHT+IHCQ80mEv1/7hzgKtXN4Pxvcf2tTNEkA8d6/nsYXqmAct+j4z6C6IBojaFFHMQaQ4EikNbPxQ== X-Received: by 2002:a17:907:2d1f:b0:a6f:48b2:aac5 with SMTP id a640c23a62f3a-a751441f052mr926878266b.15.1720021082289; Wed, 03 Jul 2024 08:38:02 -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.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:38:01 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:38 +0200 Subject: [PATCH 5/7] mfd: tps6105x: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-5-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=722; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=A8h6qBLOlBAO4Nf5Z1u5nWAte8uqhP5kHvTzaAaJZ+g=; b=0aDXAOV2yQ6SgDy74o9G2xuTzpilnDRzguPUcMJe60B7GRpVMf+4+PYXAUexv6XzXyTNSv5Ts n/Qk2O/94yEBgZU2mES9qotIgWXd8xKOvX/z05dIzLdMlcrOHx57PXt X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `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 --- drivers/mfd/tps6105x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 #include -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, From patchwork Wed Jul 3 15:37:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722476 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B7E71849F4 for ; Wed, 3 Jul 2024 15:38:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021087; cv=none; b=fxybsxeBS/ejg3HrAcFTM2Q3XCP5YnFVgE9Oi1Gjz4lrAFa02AehhDNZMvHJCQ3ExQZVJmFqOkmnoXfk57odjObg4hrxWlWtVkfNoYCBksxDu83JdGfDeLyw4v767B8mTdZ9NMIgMHPMzcUyr6AZ9dKC6VEd7zAc3cgrGuxgKIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021087; c=relaxed/simple; bh=lzMbCVVkUhr/GXktAPjXHVvLMvpZ3CXOHHuPfAw0sE0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OY0l/b5lc0SYkuD6Mv0w5cQHHCAfPY7gj5cLXi+V5olJMru4AabRAcnWfFa3hHQTsTwzDxGT4J8aUSS6YkYn2dDCYmt2pXrtbHn+OO9TGDzWq/9pXt0x8ElQYAjSd9I1K2BlOfdYhNJu4IlPcALbjK9xeVn+taU8md/jUxTVObk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=aJyqqhPn; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aJyqqhPn" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-52d259dbe3cso5707703e87.0 for ; Wed, 03 Jul 2024 08:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021084; x=1720625884; darn=lists.linux.dev; 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=JdS9SKvs4g+g+UgHFzYU/wnbS48493rr3qaG9jHxGUY=; b=aJyqqhPncC/HlWUyQn4SNTrQuReTNNcQQmg7xaIAOElVtUalnz0pS4pbz60wbAI+qq SmJhPH2UDm4GpJBE1t7dK7BhiXlR2mUS1KvJKYg28JQT3TYqh4/PNSXwhSx2dwVEQo3v OrwkL7gUCnE4hEzvy1vpbi4id/pBFM0tsFLVl+PRJUHWmD7qRx43Ui4Lvlj1Reo4S8m8 weDM/uAMsvhJK9rGRKgJg+egWBfufmnYRr8HjG65LAqExsgI56FGSCx/1H6NltZIWNIG jOMYkz/vhbwRZQRLBR+BaRvU+Q+K54878HOsSmtbjbl1nsb4Rsd16Ks4OoyNstCuXoET iUnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021084; x=1720625884; 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=JdS9SKvs4g+g+UgHFzYU/wnbS48493rr3qaG9jHxGUY=; b=TXCYmvS/xlKMS6FXYytll27HhXHnGBVYTiXtdzWqWoxbbQzire0Yh0F8CuPaSbmDEz pARBtrnIQKzPK18e/5A8Ujd8NnN6BrXe66Iq00nIarQ9eMURXkGSHA33VkG9jE7ldN2h 7znE7krC8TYSp2kIw0d1pYMT8RhBqyaOYnhtYaJBynqn6rm3ZtsCi0I8XbqJW8kcVto3 tJGhIC+qKss34wn7yJnwHuSXe12aypg75FT8CAOLZq0hsjN8payb2QrZvCdYCEOG9Mip 8e9TZ68BLyR/HXn/0CTmg3iNRRyy3uoybXf+p3MHf5MOdAY5WFyeuGs4crX66wYj/QBy aeNA== X-Forwarded-Encrypted: i=1; AJvYcCVsqhILChrcCcdfhnxcjFDs574MK45PJh0HfoKPmJ8itK9+X2OsCgdT6gAhLApexFfj7kQ6WF4sM8HWVE4D9JDL9NHw X-Gm-Message-State: AOJu0YzjcfkgXoGXTf4W/naJgY8vzKqPXOtZZ1E4tinty+HIzQhPqyD+ aXuDKCnYhfxesvvMPEy0QlyTmYSj+YT7fMfGZPM6OB8nknMxYsvv X-Google-Smtp-Source: AGHT+IHwFB8TQNcdHjQ/YqR7SMzzhHpQv3iUJdREXWimGcVns7AHZAlxXifUlseUShDfFdJnperbfw== X-Received: by 2002:a05:6512:2087:b0:52e:9765:84e8 with SMTP id 2adb3069b0e04-52e976585c6mr1154203e87.66.1720021083425; Wed, 03 Jul 2024 08:38:03 -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.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:38:03 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:39 +0200 Subject: [PATCH 6/7] mfd: rohm-bd9576: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-6-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=759; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=lzMbCVVkUhr/GXktAPjXHVvLMvpZ3CXOHHuPfAw0sE0=; b=x2zs6xZ3C6Z3pox8EuivN4ERbo8dgh25Q6A9PVuS7nMxK4SfhF8sFveHVq4LRvLRHpmHQP5BS zAbnL8XwmmiCEcxswwcRZbh5GQgnBScnkI79CjELCnPg+Vx4TFsK64t X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `bd957x_regmap` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/mfd/rohm-bd9576.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/rohm-bd9576.c b/drivers/mfd/rohm-bd9576.c index 3a9f61961721..634c65c7d108 100644 --- a/drivers/mfd/rohm-bd9576.c +++ b/drivers/mfd/rohm-bd9576.c @@ -57,7 +57,7 @@ static const struct regmap_access_table volatile_regs = { .n_yes_ranges = ARRAY_SIZE(volatile_ranges), }; -static struct regmap_config bd957x_regmap = { +static const struct regmap_config bd957x_regmap = { .reg_bits = 8, .val_bits = 8, .volatile_table = &volatile_regs, From patchwork Wed Jul 3 15:37:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13722477 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7F9E1850B1 for ; Wed, 3 Jul 2024 15:38:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021088; cv=none; b=jBNjr5y9y1LVb6kSEBiaYVKhbhNL7B4AcS+ggdaOdbfp96suRhl4AcVkLzfiUCHdqwlew6MXshOmGLBFO3r9wteS6m7Bw9fHY/g8/+C+59ZHMw6qK5OZDXvZkB9/NYzgDK2C7mGtSfxju2CR73wkAMPgDt9ohK9wANU2Zbm5Css= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720021088; c=relaxed/simple; bh=LKI2QEHHewZIBoO1kuOf0vVdX3Kg06AQSdrYQ8twpkg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=h0OrVEZNpYGe8ggT4GBVXPRyytKdvuaruYSc+2q/e6CPbIrBf2yVB1mAOcWz/lLCZ58V4JzoFEzQpLTSh4uMLsuMWtTigeV8ROao+8xd3e+cMwl99Rrb43ZM/ouEn+6e3qmeddYhUC3miuyAAUGV2689+EB4Ph3gGKdiYzE5zLE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QcKZNlqm; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QcKZNlqm" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-58d24201934so1078939a12.0 for ; Wed, 03 Jul 2024 08:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720021085; x=1720625885; darn=lists.linux.dev; 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=mWEywv5t5/SdpV2ZwtxWx9CvH6fdNiDrX1/VhDJvqUg=; b=QcKZNlqmUhqA6P0AmDmCQZ9H0OEopHQKi1jVOwdpJ28jnDA/26xACVLGZ6FGMm7hyN zQgrOa0nvbxj/ai0eGCiMJqJATlSoAKy9kRfDgK9qIe1Mt1F6l1xr8fsrmz4NrB3JYSE n1E5oP0byhJ9bgSqZg0RH6hZRTFZuUeOHU3s8Qor8zgUzFQyXNHxQ/U9daIrHdu8jb/f jNCIGKvEXTQYja0ptZDD8VatcZlsaUlO8MrmoYISbBjIghJtSrvhE3b2/oQsmeYXvRi0 CCKfdkvZNZF7o6SYQPbNaQuzbGjTlyKcoAX732a58TSCvmw9lZxf3datcV6muC6fARNL 2mJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720021085; x=1720625885; 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=mWEywv5t5/SdpV2ZwtxWx9CvH6fdNiDrX1/VhDJvqUg=; b=Z1oo3UHyj0WAJmfW1YgiNJX+bs4mZ5hNLXmE0UWy0QDGWbg+T+2crc9TZFCqZJVczW Gae8sQPtyqSdOBLbnq8oX2hGiljyXx5MVhSpx5ptRxYh4W6rTpUZsKocGBRCgJCGA7cW 8Q70rTiNGqiTLkQTIUPq+aszlPIkvkBeNzfoDoFPEjsM+krpPo62vIl8QMxeqbPXcMVg 9le9kHDw34zyxn5lSTsCKz7xRwM1FaAXqgrs072NKotHoupJhEMPSIxE5jEOcMO+CMVr tD2BgTjmR2e+ULx1X7GJAFXdSHMWb3poiiTRiFOBd4RDeNlm0phZ+aEkkwZiOfU1nOjw EHtg== X-Forwarded-Encrypted: i=1; AJvYcCX4JpT/kO6SjyuOUATjvfB82TsEPUDscl+FA8A1ZptQ9BRH87RKEUqPpgeNHp7mrQSp4rnSV7Hh9UH8GlmEIC0aiNgu X-Gm-Message-State: AOJu0YxOndrog17UsemS7tYdHGSeWTjSqdbQqTck5tEw2FYAYmDfUhaA I9m75MVQ78ut8E5lhzh5G5MJAbPu5et91+5vKfqQMubG5AvkIZMm X-Google-Smtp-Source: AGHT+IEH55huE/k5TpbK06pig6EzTTffXJgUxint6WaluoXZ+m5yup3JJBqxfU8O7ZA5KvA4IiQ9LA== X-Received: by 2002:a50:fb86:0:b0:57d:455:d395 with SMTP id 4fb4d7f45d1cf-58ce4ab0355mr1374332a12.7.1720021085159; Wed, 03 Jul 2024 08:38:05 -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.38.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jul 2024 08:38:04 -0700 (PDT) From: Javier Carrasco Date: Wed, 03 Jul 2024 17:37:40 +0200 Subject: [PATCH 7/7] mfd: intel-m10-bmc: Constify struct regmap_config Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-mfd-const-regmap_config-v1-7-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 , Lee Jones , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matti Vaittinen , Xu Yilun , Tom Rix Cc: linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1720021075; l=1447; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=LKI2QEHHewZIBoO1kuOf0vVdX3Kg06AQSdrYQ8twpkg=; b=lJ3zTuutc0Z4p2RoH31euQHDqzOporSJvVUPFyuQFoRAv5URPTdnbH5qJjw7DBBL1OERTfddD Z8ZzClYrR9VABhzaaNK4ubSv5VPNoYHXpRqy6vD28THHvVq3DxqZG1P X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `m10bmc_pmci_regmap_config` and `intel_m10bmc_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 --- drivers/mfd/intel-m10-bmc-pmci.c | 2 +- drivers/mfd/intel-m10-bmc-spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/intel-m10-bmc-pmci.c b/drivers/mfd/intel-m10-bmc-pmci.c index 698c5933938b..4fa9d380c62b 100644 --- a/drivers/mfd/intel-m10-bmc-pmci.c +++ b/drivers/mfd/intel-m10-bmc-pmci.c @@ -336,7 +336,7 @@ static const struct regmap_access_table m10bmc_pmci_access_table = { .n_yes_ranges = ARRAY_SIZE(m10bmc_pmci_regmap_range), }; -static struct regmap_config m10bmc_pmci_regmap_config = { +static const struct regmap_config m10bmc_pmci_regmap_config = { .reg_bits = 32, .reg_stride = 4, .val_bits = 32, diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c index d64d28199df6..36f631ef7a67 100644 --- a/drivers/mfd/intel-m10-bmc-spi.c +++ b/drivers/mfd/intel-m10-bmc-spi.c @@ -24,7 +24,7 @@ static const struct regmap_access_table m10bmc_access_table = { .n_yes_ranges = ARRAY_SIZE(m10bmc_regmap_range), }; -static struct regmap_config intel_m10bmc_regmap_config = { +static const struct regmap_config intel_m10bmc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,