From nobody Fri Nov 29 00:59:46 2024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.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 E051E1D5ACE for ; Wed, 25 Sep 2024 15:43:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278983; cv=none; b=TTWHOtauqmZOd0n87IBzRGd4KhHRvdcTmdzgDj7rSTjAH6eb1A09V2gZubN08sWwGgV0wYnLNHNmW3VgK8bu3jtNO8Bhp5aCdU3y+dKBX6GodHAYhMHleFWLtJDCBQO9IwQ2N28p5MhieCe3DFhZegyK/PmyNZz8xWdeC496gCQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278983; c=relaxed/simple; bh=7sxYHbFVUy82VPtxBTafFtyJ4V/px/ZO0hSTzcua6/s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pqyxoiG9zWKvTFg7uQpqKwJBuqg+HWdlKNfzIoucUXf2W3/G+PItlvSNBCTA7cB/tSd447mB1gy6xab9tSmcDqMq1fxEMDDj8O/tTZF6Mhy1TIoAEuTwKlW4ihBpgUl1R9a4M4hRVEFQKmK4vGoE2UMo0qNaYolAgjd8l+JlOmo= 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=Pe3fhykG; arc=none smtp.client-ip=209.85.218.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="Pe3fhykG" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a8a6d1766a7so967705266b.3 for ; Wed, 25 Sep 2024 08:43:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278980; x=1727883780; 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=XWbh6GTwX/Nur9rLh4dOxd0uol8CDj0VjkbwHekxRn0=; b=Pe3fhykGoFwmAZTW1wXvtjVIZxXK7z66Lndd008LpeJmev4YLiZ4tjf4XaOy3SVtSi fDK7MljuzquTPFrmDG6BgX2V2fMuvuXtGmLATA/yshxhEPOLMxOu2tBtbHv6zVWXmX0E AKvxAhQAy/epyoZBeAIGgaayWxOrCpuYngISFUQU2KzRSWsGEp2S5ovEHXFZpX2OtQLt F8J7lxtXmrHQ8z7afLLQvAA37rl9K1Z7xiD8l3qu7s6K0M4k2BhUGLloZ5192I35NnDu S3Hx+eyB7dlJztu7KiS1ECa+onesWKg6jDp8bb4Qh7tEdqWgUrzQ+3nvZyTmFoE4/aoI HbFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278980; x=1727883780; 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=XWbh6GTwX/Nur9rLh4dOxd0uol8CDj0VjkbwHekxRn0=; b=ZhBanlzN4QydDC4wJG3vRDLcbJ6/Mx1TT2rd+bJOyRYP2MIttQ9CxgqQ3s8vcdie/A t6z4oC8AbWy550QYABmE/UyEbDY0KwIldq7qnc2+0H4/+fOT3Hf4eKdeHViYLVxaqv6a 1v0aFou8F4jc1L/DLiN3xNK4hoibwGzhG027uayxQjaYgbAtGeKIMJq4GsHEH54usfC0 bgPk49i5rGkwpAcYMEG7ZqvW/gbQge7fsiMPM219zx1KNxAetewHxWmOvDXwOYhHDfDF NuFtT5p5AgFs/xqZJP6V/AwScxcG89s0SavD0OWkJIvIAJkdyIz7WMwLjzwRX8EHB7Gj GQEw== X-Forwarded-Encrypted: i=1; AJvYcCWnRsBLV8ekFQ5D49uiRoK29F91M0EBdFsFf8DJmPe41mg5IfA88cNvAE5Sw3yYg6e4r1NugUSgWWknVM0=@vger.kernel.org X-Gm-Message-State: AOJu0YzpzUKXsMFQY68rHnjrWfduBIrCut8x255zPzUXRiI8n3ELiX/f FWrAuS0Ag9wA3N1++fYivfQhJYN9wJMCl7Y9Dbihj09UPed76Ggr X-Google-Smtp-Source: AGHT+IFOGCZlm7hxWZEDil/VHBukKjDMSy3xe8mZT1I0E9J+s+NIqup/Xj8x8pzeHvNlSTbRH1jJ6w== X-Received: by 2002:a17:907:742:b0:a8b:6ee7:ba28 with SMTP id a640c23a62f3a-a93a0341396mr287138266b.1.1727278979968; Wed, 25 Sep 2024 08:42:59 -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.42.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:42:59 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:40 +0200 Subject: [PATCH 1/6] drm/bridge: dpc3433: 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-1-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=841; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=7sxYHbFVUy82VPtxBTafFtyJ4V/px/ZO0hSTzcua6/s=; b=a1oRJ13BKg+sndE24RLHGwgqk3PJapTy3e06yyGNw7SE3ROWSvYabdohlrCbkn9bjP2TpGvpw SI97afI/Lq2DamjammUDr/YLmCMfIJxNhTzop91yyMyj7KjM74Q+KXg X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `dlpc_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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/ti-dlpc3433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ti-dlpc3433.c b/drivers/gpu/drm/bridge/= ti-dlpc3433.c index 6b559e071301..a0a1b5dd794e 100644 --- a/drivers/gpu/drm/bridge/ti-dlpc3433.c +++ b/drivers/gpu/drm/bridge/ti-dlpc3433.c @@ -94,7 +94,7 @@ static const struct regmap_access_table dlpc_volatile_tab= le =3D { .n_yes_ranges =3D ARRAY_SIZE(dlpc_volatile_ranges), }; =20 -static struct regmap_config dlpc_regmap_config =3D { +static const struct regmap_config dlpc_regmap_config =3D { .reg_bits =3D 8, .val_bits =3D 8, .max_register =3D WR_DSI_PORT_EN, --=20 2.43.0 From nobody Fri Nov 29 00:59:46 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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov --- 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 From nobody Fri Nov 29 00:59:46 2024 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 56A23241E7 for ; Wed, 25 Sep 2024 15:43:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278990; cv=none; b=JFv7tIP+YFiCHiFP2xBduGL4QOlvKiNNHgHCs6hEdKls+YDnHl4qWAO3vWrxv4R6BSNkoaX3F0034RmPpEMtCHT653ymMDcxLaG/pkZdWtOK5MRH1Wgzemgy3s+Vxz3Y2HbvvCqX1VLrku4iF0bLEx2HIt+UKcvZ7O0W6zhwMgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278990; c=relaxed/simple; bh=Akh6/NmxNUGKnN3cTl+ADfEVv/jFRL48hClqI8/xUq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LcfVzOzuKtJDlk8OoXtKmQjEwTVXAgBjyDs4tV0YpDn7y80dE8iH3tMYgHDk2heu7XSFUIupHCR44xtdOVDfaoRpO0qrR39QvX2KJ7OcbZ9AAJn43Jk7ubY4cKO7ME/pakS7U9PQn6fDyu3Vr31Y35uGWzUPDs8UBHPwfqxLXp4= 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=iv6tsktn; arc=none smtp.client-ip=209.85.128.47 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="iv6tsktn" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42cbface8d6so88019895e9.3 for ; Wed, 25 Sep 2024 08:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278986; x=1727883786; 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=by/nTcqi0aVjyTogWtw3F/RwUIoI+ZIDj6x5N4uN+wg=; b=iv6tsktnZKSbMhobbq1zgaFhx6YjPewUxNOQd+PQ/1/wfiacNazNylJ0zOqvH/r9Oj Qpmp3z2cLy6VhfqqL9ovCl/jOpb/haGPyvMpwcMTn/nml2OxZfsONBx8rimZloPgSCZd zxjChlzPS5oBJmaVOmztlQ8VSkBLCx3g7VCRvHXZKxx+YMR/8DskAFuTKJRZ/wI/u93K S8uv2ll5Tw5lc3b8huvaW5j44KKwpmGA/+NzSVfk4jMY1ejv9DMxlaDCgS3pv+vMaxKk x3/vBXpjcLbBH9zbUSQ3jUKUsAg5UCy+kJmtUtZznUIRR7jZyyQNTpGE5OEVLAw5LYUv /kiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278986; x=1727883786; 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=by/nTcqi0aVjyTogWtw3F/RwUIoI+ZIDj6x5N4uN+wg=; b=GP3nGmuin3+HTgYl5Hyn5w8Ppg2F/Gs42gAZKHUDFO/viC4x3aNplajeCjsdOiHLmr aabWk/f7zL3DcpmeWPl4xhOCLpK4RCRikpHjsR2YKxdzAGGLfCi+5FowcWTg9fzRkY84 qnFzjxvFkiYF2UF3P8ExjgxBuiI5ZRZIyzCIPE9OF/umGQAh/OO6cIi+Aq2N0CRBjhUA w4gkaQF7b1fuazAbH903QiihAlqTNzsN/mqrJDHlGB8Afl7Bl7ojD1tBHsVx+NbJPpxe E2HyWp6WBJ0QZnxbQSt3+T52V5qmNFVRDKPSE4DUKI0PhEkbdRV2cAJ19w4SF13o04q6 MabQ== X-Forwarded-Encrypted: i=1; AJvYcCU0kkvE+M8XmyKvPiyqnx+L17KKach/shgAODpI7xrxU8ZARQYZ9Neyg051o7R/S9JAg65Kux+Vb0k2UFs=@vger.kernel.org X-Gm-Message-State: AOJu0YySXU6cGJaGkHk4SwNTVrWawJ0+KlGRiOaP/pELzPz5ZNE8reR+ tzBqEI7YsyKliC18GTEkmgBokP4UfQkRn3g1bkWqnvNBo6S01/gAmcBzH9Yl X-Google-Smtp-Source: AGHT+IHJhvH9gplBfs4rlapKgfN74X4J8uVmh8ECXCHmFytouFZD6MReKNv2uyQvggR0QFC+8+ktEQ== X-Received: by 2002:adf:fbcc:0:b0:374:c44e:ef27 with SMTP id ffacd0b85a97d-37cc245dd30mr2854153f8f.8.1727278986389; Wed, 25 Sep 2024 08:43:06 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:06 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:42 +0200 Subject: [PATCH 3/6] drm/mediatek: dp: 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-3-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=784; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=Akh6/NmxNUGKnN3cTl+ADfEVv/jFRL48hClqI8/xUq8=; b=IjANioE+JCFwAjMkuWw7rvXfaWWxlLsFG0TPSDiWvDMe+XOLw4C6wtw/QweEtNdXjuNtLJZ0b bWnz5DBwP4dBi/Bl+1Ajyf6T97mjVaMth7Bkz45oPrpPhWhldTvE638 X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `mtk_dp_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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/mediatek/mtk_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/m= tk_dp.c index d8796a904eca..f0f6f402994a 100644 --- a/drivers/gpu/drm/mediatek/mtk_dp.c +++ b/drivers/gpu/drm/mediatek/mtk_dp.c @@ -311,7 +311,7 @@ static const struct mtk_dp_efuse_fmt mt8195_dp_efuse_fm= t[MTK_DP_CAL_MAX] =3D { }, }; =20 -static struct regmap_config mtk_dp_regmap_config =3D { +static const struct regmap_config mtk_dp_regmap_config =3D { .reg_bits =3D 32, .val_bits =3D 32, .reg_stride =3D 4, --=20 2.43.0 From nobody Fri Nov 29 00:59:46 2024 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.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 6C9CE26AE6 for ; Wed, 25 Sep 2024 15:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278993; cv=none; b=Nlz8gg1rxyfsj7C6vFnHlCbG+M7tKCfbFjzSbo7kxcz9fK7C6u4JRc/dVa3T1N/ZhaBxqS8OnRcyvACwGAYWDuiPRIWL+BYrOon1gbHNg3zxxj+hhPqCFyhYL9rFkGA4k4T5/mSBAge8QdfY9j5l9PF6CfBsJQNGAVb5E9Crhks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278993; c=relaxed/simple; bh=5LX2h6KUZ5if9Uj2vao0DwqWNuvKw18cUv/GkRmqevw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mhDvpcFYFEGx1IhoVSNugOW8Shpgrnpin0GMouTXoo0r1TrfueLKo1JY2f2XufdYD5JY5GbFk/3FButwfalYB2KKIB5p1Ys1da51hT2YdlEN6Exe/6UsgxJrvKK8nOeOObcPIuFLu6O7i/pKtDzhI5tE4GJx3HspbeXe38aDqAo= 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=LKWBX2p4; arc=none smtp.client-ip=209.85.218.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="LKWBX2p4" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8d51a7d6f5so1021417266b.2 for ; Wed, 25 Sep 2024 08:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278989; x=1727883789; 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=xjGKEXG/YIg5uwQvEVpB+Au2CtHAgTgzoyA92gxhP0w=; b=LKWBX2p4sMQb41iP9AtUpNk03fdg7NiBT1KIBK3zvXJDBlnCvb4Hpyrlok7tEz1CxY 81pLkHyRGARDNOiKEe2nxBuXNRnPQTVUDuVs7nzSXvOnigD3EIYXzo+qv0WCp34vlc0z hMiOnpG2zNsW6E/aUm0mTrz+rgIMkZYZygusqALmw3nonYX6iCCUvf/XqOMyJZMV59CR PBiJT/E7UJp3oG7PMWZbGcjRUVxgFzL5HBfU+vUZv3SVic/f5GoDkGYgacIMj4Q+HLDv 8t4cwYxoT8IDT6FCSJPO5bpW4sgGHBWtzU7k6d8MrVrCkOmpzBdk+7uHjkaW2dKmFdWs Zy/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278989; x=1727883789; 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=xjGKEXG/YIg5uwQvEVpB+Au2CtHAgTgzoyA92gxhP0w=; b=J+r5OKkhXvd+xG8Kz141IwwWi5h4oC2fM27FjWqGU/9hpgJz3/TrQel0fsB0Rj0XMA P8l4IMhXygiyhv3iCqEXJOYQnaKtfGy9QXJaVx1NtscXFpTDAiYWvkTrONRFbPqivUsh XAT+7vXvmr81Uto0PLH4wdYWGvN392d6QBXkNeVpK0RvNjO9BbPpa6eG2dlnnTlct2Q1 hGdvWXywXmqrKt1rBNfs36w/rHtQAcCnnjWH1g8ptzGqjorR3uNYoT1qV4/oZN8YW21W vWfNndUrB9Ypg7jrQhWKCp67E2k10oPSz//DCt11Cn/WHf+P5X9WAqklZH/TVbVR5Aqr iLfg== X-Forwarded-Encrypted: i=1; AJvYcCUe92ZU8uigj8NXEOPQ9y5O5McVZuPC7X6UGYdtk/Dt9X4Xj0zwqURpg+fmWRsf/IeWHwlVw0QMPLUh1pU=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7wGkrer127SOkNjLtc5N615DGAU3ff1WtSISgcqMBLxlN/nkd XDroGTLbrksFkIhRK2aIdmRB2kslUVQppNr3y5FIve+w8BIDKxf9 X-Google-Smtp-Source: AGHT+IGAQfbPRbsfTpM0aK4D6fvZG1rsiktVYt61uGomOVbKMmopBwPFSptvkm9mzsan2gR9cCCh1g== X-Received: by 2002:a17:907:36c1:b0:a86:7924:11bd with SMTP id a640c23a62f3a-a93a05fff3amr378300766b.41.1727278989391; Wed, 25 Sep 2024 08:43:09 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:09 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:43 +0200 Subject: [PATCH 4/6] drm/meson: 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-4-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=5LX2h6KUZ5if9Uj2vao0DwqWNuvKw18cUv/GkRmqevw=; b=i/26hRvR0+ATIZUcXlMm3e7auzpYVGdXGLS4TiyMLWDOmWVpEOZntFsYtA6UIGOAGHiXCzB2L ugbC+ZKd/ssD1Wn8wgdhVT2jaSlKi3OSJfOxsagoBy2dqeu80xbwgz/ X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `meson_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 Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/meson/meson_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meso= n_drv.c index 4bd0baa2a4f5..6c8677d1f562 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -126,7 +126,7 @@ static bool meson_vpu_has_available_connectors(struct d= evice *dev) return false; } =20 -static struct regmap_config meson_regmap_config =3D { +static const struct regmap_config meson_regmap_config =3D { .reg_bits =3D 32, .val_bits =3D 32, .reg_stride =3D 4, --=20 2.43.0 From nobody Fri Nov 29 00:59:46 2024 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 3B6B93B298 for ; Wed, 25 Sep 2024 15:43:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278995; cv=none; b=NefS5qBJye8VouHIGJM9PKySZKdFudd+o05aeVtzFFwcGR31hsxQCjNE9ZvreQsQG37fTuLyvFiUO4+sJ1CjPHeKGeiiiTXh5EDf97z3CH36zdkzpF3kX8EcpJMCarwux3JSDo4n8jxE4KeYXDlGN1YMU/zEgUL133pQV8BfM0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727278995; c=relaxed/simple; bh=w4RqhIFVBN4KBuZwGM8vHSEfTfAmOJ8kTf3Rh0OtbcY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pRsGfzuqGYa+Zgyl2Z2TJ3S3FlMsR//Tz6Haso+1oUFPH8Xmor90jUiGmtd3Wk8WhFUqJ22AVvbq+15dUqW9RzFGtZZpqM3j8uIl157RUlwS+w0vGlhsif3rcPmTCOSO42g+VdIDCJ4sXgNzxDl3V+WWAHHz1sBvBk2LCcJ5WNA= 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=Wtrm1gYG; arc=none smtp.client-ip=209.85.218.53 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="Wtrm1gYG" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a8d0d0aea3cso904301766b.3 for ; Wed, 25 Sep 2024 08:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278992; x=1727883792; 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=Tq2TptZvyceBLBBx7LtBZE3h+E/rY5vjthtbIWopdq8=; b=Wtrm1gYGTqvS2GMyC0+dz8fYsnjsdsrmpY9GqSZJtB5yDplAl5Rc7djo8h8zF4+lo+ Syo2JZxo8gBhynqQFIy6cfl60bWfERfHeF3gRdrVU1i6v8Rfu8ioeCzgVKdIXQadXv/s etTeF96J2WM3PG2tGnbJYY5l+6veEAplrqTFZnX7knPh5rl0O4XIyOplTr/VaVHUMbuo znxP97pa5O2PYaeYr0xuJaPh0Nua7UmOaZW6yW8gs0mB6BswcKsjG7wTMzwISxZiDDZZ 5/fOdXAF4tI+TZiar/6Vw89ZY+mZRcluGAXM8ukiF4sEcyXg6UGU3WFI7dkyUY3AWwXs +/vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278992; x=1727883792; 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=Tq2TptZvyceBLBBx7LtBZE3h+E/rY5vjthtbIWopdq8=; b=jZKm+Bd/+b7pbb2Ngh3lY38/MNOtG3vRjhsBoOZq9GoNGBeVopYWbYvdVC2BvGRLj0 KUjIr4JtCLDJZxUxVA/Qi5hZ+HqvhRc1Cp+NeiFbXRy/8oHN4EoY9ZJH2GZ8wIXzI5Yf l7oS6aDSyDHORj7bKuB1o+oNP2F6dkzj7EOyM1xzTl+Fiiz80UvevyC5IdnbuFPtI+Zo 8Oe5i81uhijTVmixk2pEJaBpe8gm33m6I8KotmwXhzgLogA8ey76dgNW8EO822rEUt7B RjfFgxe9r9p3ETJIZsxtdVhLRyDqsbXj+92QUB/PfSs5m2gDa8bZim8NYAgoFNY77CA5 WsGw== X-Forwarded-Encrypted: i=1; AJvYcCV52qGlx5CYs+BEHhdqMwqEf2uF/oGXtA02J6m8+Wu78Fe+UiEC3wFfnqmlwhVK98wqnT1iYESkXjBOlog=@vger.kernel.org X-Gm-Message-State: AOJu0YyOOpphPhQw36/g+FrY4tM2Fdqjufu9AQNiTLDJldYm2ERlaJIY JoBlH00/shM5HidSuv3gnnczyNT8qxb+1fHqcNda8qgfhBRnHHp0 X-Google-Smtp-Source: AGHT+IHHc8HHdLYal7Pmze3ybNwhfKc28k6q1+c6BRN4mTyPbMmAiS5NmCbp8C1cZy+2fjcsw/yvLA== X-Received: by 2002:a17:907:70b:b0:a8d:75ab:17aa with SMTP id a640c23a62f3a-a93a03c61cbmr314978966b.37.1727278992373; Wed, 25 Sep 2024 08:43:12 -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.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:11 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:44 +0200 Subject: [PATCH 5/6] drm/panel: ili9322: Constify struct regmap_bus 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-5-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=929; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=w4RqhIFVBN4KBuZwGM8vHSEfTfAmOJ8kTf3Rh0OtbcY=; b=pFLApbC3MB4uKW0ZEVlNXM9AhpNeBXEs3My6pYnOwU646q8xtnwHyVxasmviBPw02fUL94CWi xgK5yWm/k67BakTjtq6lgKkPmmAhABqOvLOLqnuQGNEghVM3/8W6sHR X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `ili9322_regmap_bus` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c b/drivers/gpu/drm= /panel/panel-ilitek-ili9322.c index 4a6dcfd781e8..94b7dfef3b5e 100644 --- a/drivers/gpu/drm/panel/panel-ilitek-ili9322.c +++ b/drivers/gpu/drm/panel/panel-ilitek-ili9322.c @@ -318,7 +318,7 @@ static int ili9322_regmap_spi_read(void *context, const= void *reg, return spi_write_then_read(spi, buf, 1, val, 1); } =20 -static struct regmap_bus ili9322_regmap_bus =3D { +static const struct regmap_bus ili9322_regmap_bus =3D { .write =3D ili9322_regmap_spi_write, .read =3D ili9322_regmap_spi_read, .reg_format_endian_default =3D REGMAP_ENDIAN_BIG, --=20 2.43.0 From nobody Fri Nov 29 00:59:46 2024 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 ACCEA481CE for ; Wed, 25 Sep 2024 15:43:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727279001; cv=none; b=hDBL7Bgs5VvxTcq+SzKl4PT2QfeabbIY/qjD8zdiwFzSPQyhnC1p7Z7kr+g8E3nUtUad0Fx4q65lKsxF5vvR4dxhvMeD1tGP9DyZC1af2hCQJMIjR43Fb0juU5Q/cWYDlKirOQK7/MyMdlyDq37R7aInCUFdmgDXOBtt8Zuo6Lo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727279001; c=relaxed/simple; bh=/dTvDzTxw0elKvCO5X9KGGNdTLXj/tisL/crl9vaUr8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Oko4AgJUzIpMbxR8YIxheQOWFA0IaAIqeEoWfkQj0nO+sQ2EWnQkzw6tWi7wJZx88V8QFJxDIXPNnB3aAVhXHEWRH3e6EDNZQF4u1fKt8JsY4Yy2IaRLEgUhvKfSjuiah+9UpF6SIxhqcob5e0mf6PFF57JBwyzRlVE69lSHTVE= 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=Z05ra4yZ; arc=none smtp.client-ip=209.85.208.174 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="Z05ra4yZ" Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2f763e9e759so78690041fa.3 for ; Wed, 25 Sep 2024 08:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727278996; x=1727883796; 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=Au0IxjjfAh+IrGj2ay54oiQohRBhlUlTthFZL3EgcLw=; b=Z05ra4yZ3kvu27ORNysS+dYGITCVdqZeB2e7eEx67mAQ40girr9lp2iIvP0qqfPEkJ +pdbvO4R7VD8gSZSPkONqLOFyfWSd4NSV7hJ9e9H6CzTtBrr/owXgT3CWh+oaGCcEtP6 nJQI4U7CcqSgHkDiifLscTkI5Gomf3Cnaf6xQCT6CgSPAmSH/aUL9+GYyWfVY6FNpIc8 4cUOYrkiof4BnHrpDeHpj+wLco6X1IKaAhySHC5V2M7ErfODUCBhxtSG1IOLd7S/vLs3 xlP9qUvY/N9Z9mapVbDjDcKS+JPhC/T5IowgToFGtIjmu6t8FT3UjkPhJEkfnFCC9KUx NDLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727278996; x=1727883796; 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=Au0IxjjfAh+IrGj2ay54oiQohRBhlUlTthFZL3EgcLw=; b=q77OBlJQG/YA/2x6DwRXTDCHNqgdtX4H80PZzJ1NQIHamB4PYZLD5bCXjRjYwz+WIH ScrnxhCZC71M4kd2zTUPAL/cSoUgSPjkBVtioUp0QOx46Xrwl5Mn57SH7K+AAGC0tleo /rYBN1FtBSnpU3OUxr3b+zvBABiL9veZgvrAXjqX0LhiuWtKAslwYQPlOVbQJj8jsC4X SZHKeEzromMYska5YcSRTQQtGEAJ8cauAaIqdi82/GadTTE/0Hl+8w+CgHiAQy0wYDV/ inYEGUuy0uetxecIQ8suPTsU1pOe8MsqfuRbUN6wygrGEikdLpJ5B4AHfrP/Y1Trwe3x O1pg== X-Forwarded-Encrypted: i=1; AJvYcCXT0qeMmdIdnFLuQvo5fIZDJdkPD0mawpBQaJMtwMzOIPkL9BT0v4HYQ3m6Rl4av3KoufOl7SRuqR46WU8=@vger.kernel.org X-Gm-Message-State: AOJu0YxwbGP7LiEI12/CremXmBxrS6jaJ2HQcEqXHjF4eHVFs8cMNxOf 42uHz9LoTF0UxumO2qBU2M1bGJpmz8o9496l5G4pmcv1VZTlWihY X-Google-Smtp-Source: AGHT+IFCWYzAdpSpjVAnQ4BizrMtQKpfIddRrw3ocd29W6scUx1jmeEcp42KXRhfT3R4QSqzAie8lw== X-Received: by 2002:a05:6512:3b92:b0:535:6a83:86f9 with SMTP id 2adb3069b0e04-538804c7028mr1863446e87.60.1727278995522; Wed, 25 Sep 2024 08:43:15 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 08:43:15 -0700 (PDT) From: Javier Carrasco Date: Wed, 25 Sep 2024 17:42:45 +0200 Subject: [PATCH 6/6] drm/sprd: Constify struct regmap_bus 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-6-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=759; i=javier.carrasco.cruz@gmail.com; s=20240312; h=from:subject:message-id; bh=/dTvDzTxw0elKvCO5X9KGGNdTLXj/tisL/crl9vaUr8=; b=373HrRNVvIqo811qw5A1e2uUKIh5z7ThMB7W+u2ouyWfcNGoTkirPUv/a3k0By1E45+/+k9nu s2jBMDDp7dTCURqw9nlmEGjS03N0BqfD1AngIvdPXCsiLl6HtBQDhfN X-Developer-Key: i=javier.carrasco.cruz@gmail.com; a=ed25519; pk=lzSIvIzMz0JhJrzLXI0HAdPwsNPSSmEn6RbS+PTS9aQ= `regmap_txt_io` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/sprd/sprd_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sprd/sprd_dsi.c b/drivers/gpu/drm/sprd/sprd_ds= i.c index 0b69c140eab3..44a7a579660f 100644 --- a/drivers/gpu/drm/sprd/sprd_dsi.c +++ b/drivers/gpu/drm/sprd/sprd_dsi.c @@ -209,7 +209,7 @@ static int regmap_tst_io_read(void *context, u32 reg, u= 32 *val) return 0; } =20 -static struct regmap_bus regmap_tst_io =3D { +static const struct regmap_bus regmap_tst_io =3D { .reg_write =3D regmap_tst_io_write, .reg_read =3D regmap_tst_io_read, }; --=20 2.43.0