From patchwork Fri Jul 5 17:38:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13725460 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.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 B5B1D16C42C; Fri, 5 Jul 2024 17:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201144; cv=none; b=n8O+S+Kg2e13R5KAE3iJ/ruUMSXhi8Oh5hGAWT/h8vB4+EIox23KQ5lVZf+44MvUIedTvxd2rxqPVdTrpUm3hD78jJgvT2Kwi8kw17IJo4cc4XIzWA3DETgZ6VVIU8+bF9CKMwi8+Hs6ljtoqMf3FxbrTYGqhwbiaLLZd2Scy9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201144; c=relaxed/simple; bh=IXFZBV7X7UD8z2Ec7wO4f/8FrFuiezm5krPT0rMZ9L4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ctW/uGT/o5i+zcT6sInYMIOzR4GSRjd45DEUgNIeo05ePogAonhBQ+8rocsOq/o+DAvCsnmq+d8ssLVCQ2aUrWM6UUGvl8k2RlqHk8VEkfptraHK62F7ThQZeXhX59SMGYSGY/UcGRK9pKgXdsC9TLywX91RnNvgC2J8SoRpLBI= 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=L1NLQxfJ; arc=none smtp.client-ip=209.85.221.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="L1NLQxfJ" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-367b0cc6c65so308541f8f.3; Fri, 05 Jul 2024 10:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720201141; x=1720805941; darn=vger.kernel.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=iew4o23S0SIo1s5fA8BDbdRzSNNcENtGYU1X7JxtdB4=; b=L1NLQxfJ2QM1oIRzDbPNzqSwE6MTLQrpEDLMtW2GUlc7mU7SvYWv2JHWm3flNZI3vO LH5gAZceYqs+y5N3lHKG1v06N8IaSorbPmISVidb7P0BQwIWLPrIoGOOeBFeIel9N0JD 19W9ftdAKCQgQ4ihIwdDPvIa6H2FcHeKg4o8QVE/KIBXwVhPm+coYRIbqrfdqzwaTUqA 0GY2qXXsxgPxSTniYAePWXAPwvFH4nV4oMqH+aiB3Uc7sDpojZYhQxKIxKLvWnUKXW+j 5yQo7L9+TIzXufR8gBo/XhdNmmrphyf4zcsUsH5NNgHICPBT/DWrDBiQZo5f20eRNszb 5Ozw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720201141; x=1720805941; 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=iew4o23S0SIo1s5fA8BDbdRzSNNcENtGYU1X7JxtdB4=; b=olEnP5pueWP0ma6uopdUKqycnL7/7Ejmm5C8XQX3guG3Zt1ofh13TukL+eZyFB5aid Mu6BXE4EXdULbhH4xgg9qDkhyisL6aiKAtxQAP5Qb6/tXqw2davfQa42zbPqQLGrq6Yl CipLESG3OVBOZRSlLhRTZV48w/VibGSv3SiKJqEGlMVebX6nP1WSLfMEjVZZ/PGEcyRl ExlrWP9XsiQ1nKEQeCKhAy1Rwoci1sdnJxISgDYh339bVuhFjGfWxc5gVutYG4B+S0p0 WdKBcMfESXfXRXJJLECp5D0eXPTepPFdzddNyRh3dckr40Rm5BPiocWJAlzyjVv75Kng PrDQ== X-Forwarded-Encrypted: i=1; AJvYcCXkCQUCrLkqs1izxrxNPe29hoJW7nLQ7WCw848ig2zr1CFJhi9KgmJIKlAP9WQ/hGf5RHHTe7qajO9/o065RjyvkVvummpzprxxQKxj X-Gm-Message-State: AOJu0Yy+P750q6sHdCACanwFDo5hIjyF/+XGOURAteXZ7VzrucAoag6y byAgbhfSg8TE7lVV/cRyT+5+pezT+NyIW/f+n323FWwPccLkINsG X-Google-Smtp-Source: AGHT+IGypPOezOlLUAdnk5U9hnwyjZQ97aV+o/cs5bl3Bj3+ayg7Dv/XHvxQr+q+0EJ48U3Pq14eIA== X-Received: by 2002:adf:ed52:0:b0:367:96a0:c4b7 with SMTP id ffacd0b85a97d-3679dd73e11mr3992843f8f.62.1720201140854; Fri, 05 Jul 2024 10:39:00 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-4adb-3312-ca75-bf55.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:4adb:3312:ca75:bf55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679b1e5f31sm4850466f8f.33.2024.07.05.10.38.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 10:39:00 -0700 (PDT) From: Javier Carrasco Date: Fri, 05 Jul 2024 19:38:50 +0200 Subject: [PATCH 1/2] Input: qt1050 - constify struct regmap_config Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240705-input-const-regmap_config-v1-1-f712a4494883@gmail.com> References: <20240705-input-const-regmap_config-v1-0-f712a4494883@gmail.com> In-Reply-To: <20240705-input-const-regmap_config-v1-0-f712a4494883@gmail.com> To: Dmitry Torokhov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-input@vger.kernel.org, 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=1720201137; l=827; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=IXFZBV7X7UD8z2Ec7wO4f/8FrFuiezm5krPT0rMZ9L4=; b=F7aHw1h0iMTW/hjFSLwo457L6BLnNZd1u6FfUixPPfMbJ3UtjRCQ/BMlbC/PajAzO8YUQhRP0 AtwRMNHazWGAvgt3UxZONxWOkkbN7HQ9+7hZZ4lhbL5N+CS2sr22J1X X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `qt1050_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/input/keyboard/qt1050.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/qt1050.c b/drivers/input/keyboard/qt1050.c index 056e9bc26026..5a2592e6293d 100644 --- a/drivers/input/keyboard/qt1050.c +++ b/drivers/input/keyboard/qt1050.c @@ -208,7 +208,7 @@ static const struct regmap_access_table qt1050_writeable_table = { .n_yes_ranges = ARRAY_SIZE(qt1050_writeable_ranges), }; -static struct regmap_config qt1050_regmap_config = { +static const struct regmap_config qt1050_regmap_config = { .reg_bits = 8, .val_bits = 8, .max_register = QT1050_RES_CAL, From patchwork Fri Jul 5 17:38:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 13725461 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 00BCB16DC02; Fri, 5 Jul 2024 17:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201145; cv=none; b=QnWopXSl6iAQExh355fmT+O3LawiDKnKRGHhkgmqjRA8dZlB+VJ/m096UnCCgdY525sFoCsy6f/pK+Wd0QYr8lPbBDqUlj5UU7jQ9noLGd21T1FaDjVgCtoA33Q+j/MZ4iO8dgFDLBp5nPSx21r51ERq2wXC5j2N8mLFOinAs1Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201145; c=relaxed/simple; bh=mVgTE6Tr03GmKnHHkpuO3Mvjmm+k16ybrIW11uRgrJc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=omwrzyq7OCXlGYwtYuKc7gSwK3wDal/UgMzpXb0pQGN0Gdz0aG7v7SoQd9ebbaCmPkHttAM9z/ckROvr+WiLyOAUi7S7kXJpPM//czNkQq04gDfgTCXceYjZeCdLW2DImZ1yK2iC/HbEbWIt7uNHqlhau29usYLEfk+NXCakR4I= 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=ZCcFpDHd; arc=none smtp.client-ip=209.85.128.44 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="ZCcFpDHd" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-425814992aeso12671385e9.1; Fri, 05 Jul 2024 10:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720201142; x=1720805942; darn=vger.kernel.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=k5cL1Ju/EnizCBwzcplcXLkNB3ZwaJ1qWpxsE9WHe5I=; b=ZCcFpDHdtaL7dFXFFQ+uNg/8KD1m21k5PUEV4+l+IxHSyxYizHavaY15zLdi4bMmyp 0WLIASzYX1OvKyzIqZN59rNGDJyOwZmAb+r4mDVeqd1XD2Va4OPQ5EGoJQHbwYcW7x3F yHXAnVupLxEipfsf9I4L0GH16cGVbXtTv/KGkQIS5oXrdpoN5Yv/nlSzl8rfncsnAf9M 4WKvieAHLHxKiGGOnlUybk9SaH04VWB9pvtCNM42lSH9PMooQ5RLT6YchugoO8mYJgqe YtEF2lB+61oUlyG48i52Krjb63VZn42rVvuVzNQgnqGKHsUF9f5+Kj8wjQophHSoTdE2 ZaAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720201142; x=1720805942; 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=k5cL1Ju/EnizCBwzcplcXLkNB3ZwaJ1qWpxsE9WHe5I=; b=c65SQmyYLKZ1qNx4EdpNp6lzR0g5SdobNJD8UCJaVF/9rqKotpWOnbHeDpDSai7F1g wb4AmFeFPMeCdwmNDLvVzuLrnL3EBA3RYWvO1zMyv4NX/7OuXkHlKOXsSbfEPnsZMaK5 3IcsRCZCEN+g0JIWdycp7Pik4FQa6N/OqISUd1sznmsOTGoqmzjKaHMDQ+wzj2hWT0kd HRCmRb+QFEn4dJfS+rezK0EpmWQvzEcp5hLLVi14bc0fxNjIeGt4YxZKcv9Ojcn7u9Vp jnzzoVuLgbJC4Y1Xjxiq4NLxP+gJD9W6SAIkds1oHTV/2afiWJd9N9Q7r5fPTjiQNz1X aq9A== X-Forwarded-Encrypted: i=1; AJvYcCXfCsGzzioK8TZL8DZLEGeDSa4E8EO7DcpBVcr+4r8tdacTs2FxJOt/qLW03t7rGn6nEkUcjbfFbNSyeMFiYPT1qJNkrqoyUtLpcLbp X-Gm-Message-State: AOJu0YwiLwifBNycmahZN0VEPD6a1136Gzx52mIptUwPLIZD1q4zw1EJ uzuyheZjaGtxYbBtbw+RK9GMP0tUva5ekHTgRJLZs/Q6evfBAupA X-Google-Smtp-Source: AGHT+IENnZ31Fhfxo1qbgLtZ4Qj/fNq9I79lumyu1cAhEbDMqCkW20hYNV/o+7mX8LgMIuYOdSrO8Q== X-Received: by 2002:a5d:60cc:0:b0:360:9d4b:5b82 with SMTP id ffacd0b85a97d-3679dd66ebbmr3262790f8f.47.1720201142404; Fri, 05 Jul 2024 10:39:02 -0700 (PDT) Received: from [127.0.1.1] (2a02-8389-41cf-e200-4adb-3312-ca75-bf55.cable.dynamic.v6.surfer.at. [2a02:8389:41cf:e200:4adb:3312:ca75:bf55]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3679b1e5f31sm4850466f8f.33.2024.07.05.10.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 10:39:01 -0700 (PDT) From: Javier Carrasco Date: Fri, 05 Jul 2024 19:38:51 +0200 Subject: [PATCH 2/2] Input: fsl-imx25-tcq - constify struct regmap_config Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240705-input-const-regmap_config-v1-2-f712a4494883@gmail.com> References: <20240705-input-const-regmap_config-v1-0-f712a4494883@gmail.com> In-Reply-To: <20240705-input-const-regmap_config-v1-0-f712a4494883@gmail.com> To: Dmitry Torokhov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-input@vger.kernel.org, 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=1720201137; l=785; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=mVgTE6Tr03GmKnHHkpuO3Mvjmm+k16ybrIW11uRgrJc=; b=YpVzo0oa9gxnfpyIdCxM5sn9qo6yghDA/RAiEqND/2sS9iEP6Ju2WAMETewxVsxjUP1V2C7z9 lsiDsntgMXSAo9kOzC7mZCDUN+i38dHKfPALPTtN9EVGjZ53BpYpkbv X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `mx25_tcq_regconfig` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco --- drivers/input/touchscreen/fsl-imx25-tcq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/fsl-imx25-tcq.c b/drivers/input/touchscreen/fsl-imx25-tcq.c index 60a7246c5157..a32708652d10 100644 --- a/drivers/input/touchscreen/fsl-imx25-tcq.c +++ b/drivers/input/touchscreen/fsl-imx25-tcq.c @@ -38,7 +38,7 @@ struct mx25_tcq_priv { struct device *dev; }; -static struct regmap_config mx25_tcq_regconfig = { +static const struct regmap_config mx25_tcq_regconfig = { .fast_io = true, .max_register = 0x5c, .reg_bits = 32,