From nobody Fri Nov 29 02:44:53 2024 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 01B251BDC8 for ; Wed, 25 Sep 2024 15:43:04 +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=1727278986; cv=none; b=bC90XL0f6HkcSqUDgJxeYdCKKLAGQV+TujaGmG3ysWs4IMd6MrzAkstN3ViqEC5tNzcQdcPs118iHGO12Jyl9PjyLwii2L0pKP1ZqvgZ6eBMHcmRUkXVoL3Hm8dXKCrnU8M5U+a4rgdxwHAZ5W5XLdkirRCnm0iFiukDYCqimg0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278986; c=relaxed/simple; bh=j5IVdz0beAjnl/rD8q67jV1CX8MClFwEzj++cGsQuD0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=OdPP5Ltuk1xCrlllWrHB7XHtNtHrXWAYCtrm+ufvpsqN4ElOAyyDuSE0Aa4WWNkm4qjq0zHQAQXoV1sVkYecstFyFX9NIaZ01Z5zzcURqRuJWerC8UX1CiFr2wCi6dN9qjyTD3B9fw1k7/l8Q/FeayicKYxcaw7vTgLvGhR8dao= 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=NaPBNpxC; 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="NaPBNpxC" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5c245c62362so8430614a12.0 for ; Wed, 25 Sep 2024 08:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278983; x=1727883783; 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=3dpOZ/ioTVT/5il6ou2oxhriDCIeCxURBP+dRZuK6nM=; b=NaPBNpxCzhev7/bUuFsGnlHekJD3q7VPGZv9/L2a9C0DuJZjFWlrc/BVuP+M10UaL6 tIky4r+4cVoJPJviDwmwPt6b6S7KPCezGO7V1IxNJTcxuK/IInQWdZyEYXjiaWVa4AgG f/UumVZL4yPxJUHCGmlbmQVoojvAcgsHJrytA5bxl4GXL3rMZCpTjrlDrjx11XX29OYa vgnryEd3sv0ZayJPVbm0RLzOOWBWkeP34gYSp8kvMOY4Y9ecSzGfRnsV0PFK/fFCJCkC VBNW/INuzwJciuNEm7Ho0spQKm+Lc0zJrBk8TOmwjq9WIIgtDjeDhaL57/GwteXByKBz uI7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278983; x=1727883783; 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=3dpOZ/ioTVT/5il6ou2oxhriDCIeCxURBP+dRZuK6nM=; b=iu5bCx/WM12fmiW54E/rdWSO09bTiUgxZVYL/hibXZmDQx1mgssXyoHP7j1KIrrXOK wH4pg1fQCYd+LobzSexU85HkKgsmDZYwi8FV29HosuUdP04Bo1NsApZDx7J4KJ7fAEdW TBpJjbstBUQJ8P4A2ztcjjOLgJbAa26wFTbRkP6FQC1OTdCYYBd5s80U4WR9lyIL7QG5 2BVEIJaJFXnA1HnC63zCXhieGjZkmB3i9IkdTazh3TI1vd7vlSAqI+nflnfQB2FyTlCD Mw4AyI4+FKKQvWC+O2q+wnDikzKy3NbuhA/Vw+FLQ3We7scwJDmcr2qDYtuSktoLHGaP eBvg== X-Forwarded-Encrypted: i=1; AJvYcCUTGyZ6IuyRZn/Ih0o11/fp65c0vaz2w0peg4L4CRpPNtkbeSOzlV5XFieveA76KvoML1F+/GZqH6sd95A=@vger.kernel.org X-Gm-Message-State: AOJu0YxBjoIdIecOSAJMpp6FCk52iGnqIkzxM4X2Kph5jyqDxCWfWYuD R0XlGhxc/jRb6/Lo1njBuEz3UJIN+BiI1i13hC8PJuBGDsWSEiQJ X-Google-Smtp-Source: AGHT+IGKuNv7lE0u67hJ2OAhIVHl0bYdcTWRyaXR7IlGUKMo0Hm1JsihuqtBmJ8apswZAkFgkwRFnw== X-Received: by 2002:a17:907:1ca1:b0:a8c:78a5:8fc4 with SMTP id a640c23a62f3a-a93a036a36bmr248782566b.19.1727278982930; Wed, 25 Sep 2024 08:43:02 -0700 (PDT) Received: from [127.0.1.1] ([213.208.157.67]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9392f3420esm221803466b.40.2024.09.25.08.43.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:02 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:41 +0200 Subject: [PATCH 2/6] drm/fsl-dcu: Constify struct regmap_config Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240925-drm-const-regmap-v1-2-e609d502401b@gmail.com> References: <20240925-drm-const-regmap-v1-0-e609d502401b@gmail.com> In-Reply-To: <20240925-drm-const-regmap-v1-0-e609d502401b@gmail.com> To: Jagan Teki , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Stefan Agner , Alison Wang , Chun-Kuang Hu , Philipp Zabel , Matthias Brugger , AngeloGioacchino Del Regno , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Jessica Zhang , Orson Zhai , Baolin Wang , Chunyan Zhang Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, Javier Carrasco X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1727278971; l=797; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=j5IVdz0beAjnl/rD8q67jV1CX8MClFwEzj++cGsQuD0=; b=4dMgS2dx5TyC8IP1MnInm+QJtBRuPpVnV4hoTf094WArm4pWhlF0Mhj9oO7SjZ12DXIAB3adY 5WH2uozmSnrD87oiirTQsU5nwiuxGKcfiISjPQfFww1GYXuUT2164v3 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `fsl_tcon_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/gpu/drm/fsl-dcu/fsl_tcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c b/drivers/gpu/drm/fsl-dcu/f= sl_tcon.c index 9eb5abaf7d66..49bbd00c77ae 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_tcon.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_tcon.c @@ -29,7 +29,7 @@ void fsl_tcon_bypass_enable(struct fsl_tcon *tcon) FSL_TCON_CTRL1_TCON_BYPASS); } =20 -static struct regmap_config fsl_tcon_regmap_config =3D { +static const struct regmap_config fsl_tcon_regmap_config =3D { .reg_bits =3D 32, .reg_stride =3D 4, .val_bits =3D 32, --=20 2.43.0