Message ID | 20240705-input-const-regmap_config-v1-1-f712a4494883@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show
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 <imx@lists.linux.dev>; 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 <imx@lists.linux.dev>; 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 <javier.carrasco.cruz@gmail.com> 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: <imx.lists.linux.dev> List-Subscribe: <mailto:imx+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:imx+unsubscribe@lists.linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 <dmitry.torokhov@gmail.com>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: linux-input@vger.kernel.org, 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=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= |
Series |
Input - constify read-only struct regmap_config
|
expand
|
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,
`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 <javier.carrasco.cruz@gmail.com> --- drivers/input/keyboard/qt1050.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)