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: 13725463 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 B3CAD16B751 for ; Fri, 5 Jul 2024 17:39:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201144; cv=none; b=DW/pVDNcWKaMCt7KTWzWTLhs6teWh15z8LE70OwAZ7rDzDrNyZbpwuYSx1IWlQhqATr1hv0NSy3QvGKGTwJi/AqOOGCUpnh46eXfXnwGGaydIVDC5NWUjhSLyOndVp7uIbvPS6c8idVZOcqEQZnTVJ3iNA0CEc9fvFWPXN4s+hs= 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=jLquzf2m; arc=none smtp.client-ip=209.85.221.48 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="jLquzf2m" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-367b0cc6c65so308540f8f.3 for ; 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=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=iew4o23S0SIo1s5fA8BDbdRzSNNcENtGYU1X7JxtdB4=; b=jLquzf2mdXYjMc5Czt2RBCRm3czHJWoQ2aPMTWI03NpV/H273QYokoPz8ZrmVkFBzn 7IyMdj3xfxG6NLGG+E4Gd7lSMnN2RdfLsXWZfwBsV6V6m74kbHfI0kMeQcufO5NuEDuD 9dHnwx7HmuzYReZK7pZ7ZYKsL/o0fhI8IF0QpNNx5emB3ZUNtdV8bMwZDA9lZmOGzdPN OzZ4vD2YfX6EpZ6KTKmDmJiHV3+I1urJNH8rIoU974dACsnKrSLJvCzl9BcXowRUGh7g EhYr2vr6EVzG2Gd1KKTTd6YXWCHCikgSB1xJ7ada8hB+i9dX4dhHAIfQeH0mtf6lZIDW mcfw== 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=DJunUUJ5BC02xSgflw7HJtdXEpMf8VmAsMu0TvACSP4tH5RekEDpTX22nL2zox5A5P PZCRAqkC3hgOxjgreriJ1R129y+vUBY7cbXdCrZLetsTUvjnXACsKJYemb16yxPyn14D /w9dHZwWfuDFB9QLiMXzUkuVrgpC0RQDGkplO1Wkk/KcbA4Yexoe2qzEhgKcpQd1EtBF x28+aJfz7LqJV9j8qLx8r4l2YzZQzCElPt4Q4WKWgYi9d/OwgMHxvhezWSQSUVyp1A6O kE8IljB1go1Lrrd6b50rpMmC+scWTlzBbLrLqn9DkZklFmBwpdG5LqD49HnR9pUr9PlG wi5w== X-Forwarded-Encrypted: i=1; AJvYcCXIF94MLNdmPEL6Ih/FOpnXR+Pzl+YOgJq4/znQrhBVHwfeEiI6nRMfWMGPi0EFBH44GgHvDXKAqTX4LKFqXeBg4OI5 X-Gm-Message-State: AOJu0YyQNCj1lnzXzXX0b+NiWDeRPoUq5VtahNx96Cz51LrLJSvLL81+ ABASQnmLuvZuvqex84i/Z1Y7SE87xTH8zzSb3LQFMlNTqj8pmU+d 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: imx@lists.linux.dev 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: 13725464 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.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 03D9016DC03 for ; Fri, 5 Jul 2024 17:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720201145; cv=none; b=rvEFOldSflZInux4JwKPN0X2wNOEeoc3qQz7IC8qHQY0n1HoCg2ZAyZTls06NR1KYVzmRmedvAarxI50+ORVboy85SlYJQQHN386qqGvByJnAOmOTHMHqFLsnGoCc2sRtPJwHltEMP/yYq8EPHdffNQ/A3xZlUqawnzwfVTPvjo= 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=BLscUOfq; arc=none smtp.client-ip=209.85.221.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="BLscUOfq" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-367a23462e6so1035823f8f.3 for ; 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=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=k5cL1Ju/EnizCBwzcplcXLkNB3ZwaJ1qWpxsE9WHe5I=; b=BLscUOfqTfrQcHNF6W/W3mZG+9khfqXeMODwNOk52Bd3BUeSNgTJUXKeNBtdoahlhL UmxMAo2R9TmPp6oljqIUOH9qty9WiCH5ambYpv8mgCdy+snRoLii33WfytnRnq8n/Sgd QqTg7YYvBKUd0QJYDKE4y3X772iBBL8XJh3Ty/ZnXe4CvPW4ieF3Nm01NY6RAeTUGRek 8KdGeOsRRhsIrMQr6k9Hll3gCKX6oRH5YnX8M4uU2l8yZE8kt+DbRFWVGccC5gLzYF+1 F9feCxM1upjI74tiFc+0nBaeLvzrZyaE9jHN2u2sHuMu9J8tb3khk7/VgsP1+FN3fJgR d/Rg== 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=Hor53vQSbpvHoL8JUD6ARNMDeNh3anhZQr6KwQclOqms0zjx2d0hIriOyBTNOuddZ7 EFny0E6MYhnxRYIE5saG0Ml3/MXs8s8cc9I2FNQxIav5zYGUDXJYEx/t56P7KFwfKtJU nwfpfYVFd+8Mkn6LyArOt3ftcy26Ti1x3e1sZJmkIxg3mrwO2VCJc8IxHD4Ca9RTuPpq fOptO/msafboacVsw0ijHKIyLzidLRKWikav4KVh9aXL6fTpN9H4VWPfb5By83glwgJB gtUmpGODXGwLC219Vs5ljnqrbJ0W7xGmHTnNPBRbOa2GdSuo9EfyOZqDMjx64ohv0JVA AZFA== X-Forwarded-Encrypted: i=1; AJvYcCXaE7VpQoyLDo4y+BVelL7ZNHZ8lLOUy7ArzaDMKIXVKbLrNeyTjFpmoVD9SMfFH6Kl8kt7RLoz040lmCarnXYmERsn X-Gm-Message-State: AOJu0YwIfO+oB3egU/TZ+7dNzpGMorZhkdTKMWakga2Mcye+KGFJqnlu WrgFDHjaDmjl8TtKQMNqyUEcIFgCKwpUgTwam+gaPCFEQL+I7f7y 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: imx@lists.linux.dev 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,