From nobody Tue Dec 16 22:19:01 2025 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABDD513DB9F for ; Mon, 5 May 2025 00:15:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746404106; cv=none; b=R3zOqZmwRUR2FIdGAhkf1DtFLW8iYuS0M/zB5+OXtKefxCJcZBUFy0GrC9Wd62Sm7RWIZwtEuCV4LYMiAai6RC8nsLXtd2E/OxDFKftjM987mKgZG0xyVIB8cS5PjH21xSZW2BTsY43Pt9nu1wxwreEnvuDJRHP5G67z3PB832E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746404106; c=relaxed/simple; bh=R3CBP0ibrNJqJlrYI1pzB1aKGKkjPkzW2OV8SkVH8ng=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ia/UP1rgmTlNBetK+PBA4uft9jH/kF95RDfJDSpiwcTRgrQpxi5goCLFlA2tfXA1RoIM+dkHDVaE7HWVqgikf7DYtWUPX2CknjuievcIRDfEgera0NTYAIl2uF2ty2IrUJLUqOxuH7OrS2OvTDQFB8GB24C1exRWxbJwr+fpSEg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Vra3753X; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Vra3753X" Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 544NjmaI016270 for ; Mon, 5 May 2025 00:15:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= yWQo4Z5PDmysZkCoY6xDQm8GNhU23pomDWkcqd41CLs=; b=Vra3753XLpzj9XhG rLOCnw+ZFpvaLCo9PQmpjqii9BLcl4fPJP6eJIkYRm4Qd6O7pBeIAeRHfQkmnX2K 239xwd0UcID43in+N5PcRWnA+4gYf8hyFLeWpC2XLYsg/ftQjk/udiPeyVyqRGh9 UyIHVXBgRSUoa59ZSXNAWdTiDBQVIc3a8ie+43Xr0TOazFJgnCGKRsYH6mQJVKun OEtJx6Lx48Qq0T0GHbmT0M82kW9a5DNN37EZAsTBHKUb3va6vVsbM3Q00PK5xwy4 1aU+1BQDorWitpwVEsf9cX7cY8weDartyI44uADGL0tteX4PyJbGd9bW5Z9wcib8 LBw0yA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 46dbwfjj3k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 05 May 2025 00:15:03 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-7c5e2a31f75so445473885a.1 for ; Sun, 04 May 2025 17:15:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746404102; x=1747008902; 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=yWQo4Z5PDmysZkCoY6xDQm8GNhU23pomDWkcqd41CLs=; b=seCeRFrd4TeK1550rqhBkslPCIQO3434jK/+N1lG9i1WQyeRtzbW7zt3E2u3Nqr/eD FtzUMMW3h5KVOI7ig8ZFXpJmCr8WBRvGkDAQCt8jZqRxTuLXE/UdU7LHniqw+DKEXCH6 eORlFncTtM3NtG2b0XIu7T1AWyNlDT8b/3xhKyuKvu+hE32L+9MZ4pu3gM8ZEjqEccrk W83Yv13p6wPXYIKiK6ZWZ290Bve4rl4orPE4E1xi53E6hEV69AhTM5xZuQHPD8+s4cB+ qtf4oHyTMpMhA5mRC+rByvETkAA2uHUMWYSSmJG+XcTy2zjh42QdiLxZQV/flaCN7+Bs 7n1g== X-Forwarded-Encrypted: i=1; AJvYcCXTtQF4uVyW8D1ZG6QDxaVkdExcbxuo+XqqTEx+o8vs3PAg2CokLZdlJf0qWwnJFB1F4+GgRU88Xz89ID0=@vger.kernel.org X-Gm-Message-State: AOJu0YzBJDzsgf52U4McRSCy/GeUOiRW0snVeq/dhIpnYU5NLF5qYz9Y c5MVyY55nF0cfAWZKwg00oOIc16ndBdytYtLKVl9BG6mqIqQZn6FFQDQlrQzxAXuGFrkI6K4bMZ Twi17859WswTa4VsjgB0JFvdrV2azlFNTcwJqOd/Vlam31Efnl2EHo2a+5mQ6ik4= X-Gm-Gg: ASbGncsodc0Tl4AUGshDqazpA5vm56Kcft+WEQGepP3HojmvfZMzTz9WcP4Obf84X9s nBSWQQGw0/4axjn18xS92I/pKMh2NNPDdRRcOQSG++zcQK4sHRV9mLzWVJqL5VyJybfElgpkMv5 7Rp7W//Ef6kCFVseRMR0q1UG98AkWLfhJ3o08g4ze1G735pfB42A/WRD+WAnknckm97h5Y6dFOb tdMnGxRihfPHCtNu7hH34M+F4yPlHLkFZJmKQ3maD++f3bj5JOxiQg9yCYUca6tjfOu0MC026MD SQwO+Yk4P36j0ouVjZz/EKjR3Gb6sSD89UaXlK2GizNbDrn0L6Ux+CtYbqyTBcf140aw7feUKDH kny8aP0JXsckOzPq4f1LTOcHp X-Received: by 2002:a05:620a:414e:b0:7c7:a524:9fe9 with SMTP id af79cd13be357-7cae3aa3a7cmr896858385a.27.1746404102523; Sun, 04 May 2025 17:15:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdrC3ycJxwH2BFRg4EiyOh6BromHc5ZkAaskVVGgI4h6Va9/YdT+row9ABNiVdh8lkwLCRUA== X-Received: by 2002:a05:620a:414e:b0:7c7:a524:9fe9 with SMTP id af79cd13be357-7cae3aa3a7cmr896855485a.27.1746404102179; Sun, 04 May 2025 17:15:02 -0700 (PDT) Received: from umbar.lan (2001-14ba-a0c3-3a00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a0c3:3a00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54ea94ce656sm1454066e87.105.2025.05.04.17.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 17:15:01 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 05 May 2025 03:14:46 +0300 Subject: [PATCH v5 02/13] drm/msm/hdmi: convert clock and regulator arrays to const arrays 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: <20250505-fd-hdmi-hpd-v5-2-48541f76318c@oss.qualcomm.com> References: <20250505-fd-hdmi-hpd-v5-0-48541f76318c@oss.qualcomm.com> In-Reply-To: <20250505-fd-hdmi-hpd-v5-0-48541f76318c@oss.qualcomm.com> To: Rob Clark , Abhinav Kumar , Dmitry Baryshkov , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Simona Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jessica Zhang X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2874; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=7lUrs50zxWBMH2nsFJkOQKE5+V0if7+ZVLc7E3wO528=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBoGAL7jjBvGfEJeiKcCCLimLWwORrs1iML3cwOS v/PWWa5PVaJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCaBgC+wAKCRCLPIo+Aiko 1cgSCACoTdcO9lLaa/U2BZvy7Z0dCUC8lk/IbILad1+ifw9OHX/97i8usZKH82EYAQIhmtN/8xZ r7N2D2jMw3qQD8XiC6JXCjURIVn2GMhFPrln2fHBzkqGM0YsvPlUG8GjspEtpokQudAAqxGQKiX E/tUoubpyVWIZH9XrXMPjzBthY5I7eDgLc7gBPcmf2JF1FSKZ1LQSkd5SmQN7xwyQ4oMmZFJSod nZPasXJcwNAqBBoKCNJSvwoW15Odj6hNSGbsrnQlXq5SkKJd7gdZyJZM0mIgfEEs36X8uxvMamz B/0kp9bpsiAhwUDA1RD7uzFikxbGam8B4Eo6RfrgQXyXCfil X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-ORIG-GUID: fAfZfZ8Abh85Ow_CSB8Am6vT3HTPRXrO X-Proofpoint-GUID: fAfZfZ8Abh85Ow_CSB8Am6vT3HTPRXrO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTA1MDAwMCBTYWx0ZWRfXwquk2C32JklF hGxxqUkkCqdMIxOfHaJF8IZOHtLhY1yjymxKFuTYDcj/vXFWOQBYpjsYSDkdIOKeQd8UUBufxru GhOpIvDiFKs+Tn80onFl3+a1TLWt+VQGiOXQjD/+IdRIZLuAFk9H+f/ARpkadbgzyOpTLxRef+X ZhwBYdzviN46Vzlvolr7nA0fM6iXlfkYj0VeB6SYedxkvR/Dq6CJ90tsJV+0YshcDl4iQjWIvu1 9WrA+867fpUeXkh7qy0pSMa8/Lh0RCZyMyO4LUrvM2wKQyENJlYtqhn0r5YuYb7NUdE6ZJL6loY DT9f6NSY0y6ohRFgoKZnuIVWqwK28UAzrxq4/YdMSHVytSqXc9oOgY9zHUZnKnUB9bjUKkYKDax yrYPUrhVrKvTOfFEn8VP00RM2igMTDA6/wmG7YD7syDORIfPRuvP3VzTr1fRU8UtsCV19ObM X-Authority-Analysis: v=2.4 cv=AfqxH2XG c=1 sm=1 tr=0 ts=68180307 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=dt9VzEwgFbYA:10 a=KKAkSRfTAAAA:8 a=COk6AnOGAAAA:8 a=cMmCfeQhgp6qDJoOuqgA:9 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=cvBusfyB2V15izCimMoJ:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-04_09,2025-04-30_01,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 priorityscore=1501 phishscore=0 impostorscore=0 mlxscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505050000 From: Dmitry Baryshkov As a preparation to the next patches convert 'static const char *' arrays to 'static const char * const', as required by the checkpatch.pl Signed-off-by: Dmitry Baryshkov Reviewed-by: Jessica Zhang --- drivers/gpu/drm/msm/hdmi/hdmi.c | 10 +++++----- drivers/gpu/drm/msm/hdmi/hdmi.h | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdm= i.c index 248541ff449204c72cd444458dadb9ae4a0a53d1..9e9900882687fa2ae4a734d5cf1= 0b5bae5af2f87 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c @@ -224,17 +224,17 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi, .item ## _names =3D item ##_names_ ## entry, \ .item ## _cnt =3D ARRAY_SIZE(item ## _names_ ## entry) =20 -static const char *hpd_reg_names_8960[] =3D {"core-vdda"}; -static const char *hpd_clk_names_8960[] =3D {"core", "master_iface", "slav= e_iface"}; +static const char * const hpd_reg_names_8960[] =3D {"core-vdda"}; +static const char * const hpd_clk_names_8960[] =3D {"core", "master_iface"= , "slave_iface"}; =20 static const struct hdmi_platform_config hdmi_tx_8960_config =3D { HDMI_CFG(hpd_reg, 8960), HDMI_CFG(hpd_clk, 8960), }; =20 -static const char *pwr_reg_names_8x74[] =3D {"core-vdda", "core-vcc"}; -static const char *pwr_clk_names_8x74[] =3D {"extp", "alt_iface"}; -static const char *hpd_clk_names_8x74[] =3D {"iface", "core", "mdp_core"}; +static const char * const pwr_reg_names_8x74[] =3D {"core-vdda", "core-vcc= "}; +static const char * const pwr_clk_names_8x74[] =3D {"extp", "alt_iface"}; +static const char * const hpd_clk_names_8x74[] =3D {"iface", "core", "mdp_= core"}; static unsigned long hpd_clk_freq_8x74[] =3D {0, 19200000, 0}; =20 static const struct hdmi_platform_config hdmi_tx_8974_config =3D { diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.h b/drivers/gpu/drm/msm/hdmi/hdm= i.h index a5f481c39277631b7a19d294b086d6208be26511..381f957b34305494cb4da0b7dcc= b73b6ac3a1377 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.h +++ b/drivers/gpu/drm/msm/hdmi/hdmi.h @@ -84,20 +84,20 @@ struct hdmi { /* platform config data (ie. from DT, or pdata) */ struct hdmi_platform_config { /* regulators that need to be on for hpd: */ - const char **hpd_reg_names; + const char * const *hpd_reg_names; int hpd_reg_cnt; =20 /* regulators that need to be on for screen pwr: */ - const char **pwr_reg_names; + const char * const *pwr_reg_names; int pwr_reg_cnt; =20 /* clks that need to be on for hpd: */ - const char **hpd_clk_names; + const char * const *hpd_clk_names; const long unsigned *hpd_freq; int hpd_clk_cnt; =20 /* clks that need to be on for screen pwr (ie pixel clk): */ - const char **pwr_clk_names; + const char * const *pwr_clk_names; int pwr_clk_cnt; }; =20 --=20 2.39.5