From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3AF1C1125826 for ; Wed, 11 Mar 2026 20:17:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1957410E922; Wed, 11 Mar 2026 20:17:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.b="crT6w6Cm"; dkim=pass (2048-bit key; unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="FrDnZpXS"; dkim-atps=neutral Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD19B10E91C for ; Wed, 11 Mar 2026 20:17:45 +0000 (UTC) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62BK8RbZ2031208 for ; Wed, 11 Mar 2026 20:17:45 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= s0pCDmC7QmjeiaXxXJ9e3qn6IfxRNTNI1GwlSoTLmF4=; b=crT6w6CmF8tFIeiA ins5WhSAOkjqc74M0EOdIAuyJbzpCIkiiGFOla6tbdW4cVN14pdgg5XrfOWd8Gjj CYtn41LAfyHikRk78WlWOCXLWwWofHJk7Ew7k/wH4Vo5NmRiz2QJqgEba3Doasu7 +8CaQkHx5LtISvMaW+Yfjq1UQkhH+nduathbJ269y0UJygIVtDXj36Msg3657tpM mOAVqjOk9tNptD0oLBKc0eAfxQUSIE/KKA9wxQfzIqoWVPQ/986iosAm9twHN15k OQGplZ4IcwuoGAqGhEVmh1fyn7yLeTX4Aqh8miFUCTlr+mJwf8NJtPHTDNRbv4UL si+Odg== Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cu40h2sx3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 11 Mar 2026 20:17:45 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-8cb706313beso44096385a.3 for ; Wed, 11 Mar 2026 13:17:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1773260264; x=1773865064; darn=lists.freedesktop.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=s0pCDmC7QmjeiaXxXJ9e3qn6IfxRNTNI1GwlSoTLmF4=; b=FrDnZpXS48QjrGqwg0jL+lySSPGdcfm9Yepss/ktssm5/3cIPeawHKu2/vKm8MkHAB JQpC0gh0EG280eHTWhebPWdS6ovJ+zkzgun8uTgXUQ8m75b/BrpDFFy0+lI/4QXPBkKY QS1+dmeUu897uI96OPzu/YEhDEVjKYGvw9azefs60ZKKL8I3Ekpd012/Y0jvC/sjLQE8 nQBzEcAetOvQF6gzNfpgo0l93MICrUfpi1eLf6qBpDpxdl3KbKCOSd5Tkm3NTIe9B/rU 7MhVrV3E2XGNOFhVnDOD50a81mYWetBzJqdUO9xb0wqI65GHkbtezGcaCI4H3FcjAuYt J11g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773260264; x=1773865064; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=s0pCDmC7QmjeiaXxXJ9e3qn6IfxRNTNI1GwlSoTLmF4=; b=FhYmykqxrDJhCZmvBbrkA3R6syjQBe6m3/QfDvCNPpC/NECvKsJuEWj8YDYbs2vFdj 0w0UwNmR22znV1XAJKRk+Q2n9WLXd6xOFKxsHV9/RDt7YaXE9MO+kwo3+hGPaI+86s6s JpgYUuo59yxeGYyyAnUjSCL/ahh/7LrxY8XLLo8yy3f2qLaoxhYSi5uxxXHGM4WhPUfI FQAI5GQmBw9bkwCBXMJsC0CaGc//2R31Jx0cSfDmLjktZMd7xsE4lQubPf9GhbBuPKJy zzYutCFPwJ23ySM7vGJ6aL+xEESOuZ1CxpQWUaA0qs73Wmfot1DAjohwHkw8vd98ADF0 WFOw== X-Forwarded-Encrypted: i=1; AJvYcCW6xY67EMVlussYHvtjA9gwJAClUhvEG9EjDA4g5LVNtQNzfJPa8ZLi+ermCgc07UYjkPSN6yxbzDI=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yy3yVrQnXlmAgi/i8h6qZzTL8YYoIInP8MNaqrijP8bg3UVS2a6 U31TSEOAh1ImYfs1SJpa7LnAUaIgn/9pqBJ18JpfNg33HT8YHKcVERZNZ4crr9mjTwYkh6av914 VGE8h8SS0ujQSGYsSHmTinIQwVJbgbRDN0ndUM3HdAkNncu4SAmOW8VW7TmT8ylDckiI0MMI= X-Gm-Gg: ATEYQzxB4rV3q40mkJhXv135YO7Ul+4SrLPwm/jMCNM0ZB/wkxA9BU+91Ud9Y8D+Xe0 nGJeHBiMHVdWoIYBghG+Mr1NzM2mF9DZPFjuIdIsLg0wV+xNWGrC8YXbhM7n/ubtYkgOzmU+/ij vwFNe2z9xQov+BRvgNdkk4vLCsFutzvYVx+oGODUQZ3YsCUSm9vp17QT6ETyijp73nnjlAZ+LhL Y8vfyCqJnz8wqLj3uXZ5rGY5Q+OukHFMPYWmWD47po50601Is9pOFVUTdXCT3ayYOa3MBZwGQpd nxU+WG/2WIbFrjtDZInU02r5bmesRx4IzZoMZDab9EEU+bRQMhtrVFZTWZP51kV88wVQdC5pi0B 56yn8WxjcnlyFI1oEBhnjsAscKx5jjCpvYYubnC3v1wpe X-Received: by 2002:a05:620a:4009:b0:8c7:a53:4d17 with SMTP id af79cd13be357-8cda1955188mr518427285a.21.1773260263931; Wed, 11 Mar 2026 13:17:43 -0700 (PDT) X-Received: by 2002:a05:620a:4009:b0:8c7:a53:4d17 with SMTP id af79cd13be357-8cda1955188mr518424985a.21.1773260263444; Wed, 11 Mar 2026 13:17:43 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.94]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4854b65fd3dsm79257255e9.10.2026.03.11.13.17.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Mar 2026 13:17:42 -0700 (PDT) From: Krzysztof Kozlowski Date: Wed, 11 Mar 2026 21:17:28 +0100 Subject: [PATCH 4/7] drm/msm/hdmi: Consistently use u32 instead of uint32_t MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260311-drm-msm-hdmi-cleanup-v1-4-c5535245f6de@oss.qualcomm.com> References: <20260311-drm-msm-hdmi-cleanup-v1-0-c5535245f6de@oss.qualcomm.com> In-Reply-To: <20260311-drm-msm-hdmi-cleanup-v1-0-c5535245f6de@oss.qualcomm.com> To: Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , David Airlie , Simona Vetter Cc: linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=5244; i=krzysztof.kozlowski@oss.qualcomm.com; h=from:subject:message-id; bh=7SE5vZDOstE9Xf57n1Jrye22q6OMfp45ac26O+8OlYc=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBpsc3ZlABg923DtFNon4w7UtYzxE++UxZpN1mdD yYuM/d9b9aJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCabHN2QAKCRDBN2bmhouD 14BwEACOMpajqkKm0bcmSBekvIusi9wH5gcwyc8sWh/klCtx2IY0PKfVTCt/W9zcuY9KHBRglJQ E+5YNfhuImlHKXwBZjN3LLAt07y02QiuuVTe7bSpPpJyPhN5/Yvkx4IEd53BMDiq6RXzpD1PtF5 //gPF8qo8XhGHrDmvHki5m2mjDNLNJu/vXpecnAoxZ+1KcM4IveElIZQ4rZpspt2RD8UrSSUrER L49DTobbLz5iqdMhfz8gGTdUjaNmcq8xOmoDeILoQbnCHcO+wG4LKxdZHwC4s9aHShJchhA5hjg ccX1xFRzdV9mkcvOfVYHAHaZh1JB04iYrbm2/TJAWFKV3fCevw7aOq3eLJ6z+Q8zzOi1c758dda Y/XBS1QOHKI+DZKOk2ICy9KBPnZzWk0qUzT6UelQaSsP/01fLOYTEPjyawXCBSC3V7bbHC0NzHZ u3kVVgB8155HW9CIx8mQBHQzA7UxR74j+d8UlfWqDJPdL2KX0UVAxVf0NftlPnkbBS7td77mL+z C5l2lCZ/95TPoKkDBb3pn9aueF+4mtZRt9ooFXjSbHml0LBDOfVY530cWhAw1DvVvjDr2aw5emA 5/Nh9/03wXoOoFlAlwZzBzU4eEBCyjGzyIYh4ThZ6SfuxqcyUs4s5EoEYkLBbvL8tVQTmNkmLgl y5KnMXGp4XTQzfg== X-Developer-Key: i=krzysztof.kozlowski@oss.qualcomm.com; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzExMDE3MiBTYWx0ZWRfX9Cqs7oJWvR7A PgyrFVK04SaNAU21YEW1MH0QcrepnRA+sTpd5ADoOu0/t5I6TRGHexltL4ez6MvqD8myt9eEZUY peh0Zpluk6hta2KdOKShmHu60FTLL2nsKiB5oXh5f+0BHptpHXl8NvRR+2Gn5VKrLtXp0Uw/O80 /EeBABtOs50woY7h4lwsYhN57sRKIstgV32r6skG01dRetZiD98zemrj4F8mUm/qY3+9NI9G4Mo 0oCSgVNUTbRK4ZbnmlGDFbCDnGaCW21rnefS+prEFpFO9q2nwBAtd/Sfbz5zlTJ3+UbdsZ2yZub MV+7+eGThmRExiZmFp9QewkDEKhzWrrqlhoAdzxw6yw1YY3yua/8dcOA6t1YM7LnQqJrcAWwpoa F+GJdk9dxqvUjqYbwyH/ojnPmwP+4xHxzmXdS3gtaIGo0Nb43oeIxEQOcu/I7bdy9MGvce8QIc6 IEYk3wIFL4u88UVpeBA== X-Proofpoint-ORIG-GUID: FNhwkuZVSKx7rmLpjIupdVqsdBG-a7yq X-Authority-Analysis: v=2.4 cv=YJ+SCBGx c=1 sm=1 tr=0 ts=69b1cde9 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=gOEeR9iKwsj33Yj5oN/cWg==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=-BdNwxT8-gaB3-AsIdYA:9 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-GUID: FNhwkuZVSKx7rmLpjIupdVqsdBG-a7yq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-11_02,2026-03-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 spamscore=0 bulkscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2602130000 definitions=main-2603110172 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Linux coding style asks to use kernel types like u32 instead of uint32_t and code already has it in other places, so unify the remaining pieces. Signed-off-by: Krzysztof Kozlowski --- drivers/gpu/drm/msm/hdmi/hdmi.c | 2 +- drivers/gpu/drm/msm/hdmi/hdmi_audio.c | 5 ++--- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 4 ++-- drivers/gpu/drm/msm/hdmi/hdmi_hpd.c | 4 ++-- drivers/gpu/drm/msm/hdmi/hdmi_i2c.c | 12 ++++++------ 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.c b/drivers/gpu/drm/msm/hdmi/hdmi.c index 03aa29dbb2f5..06cb0247eb7e 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi.c @@ -20,7 +20,7 @@ void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) { - uint32_t ctrl = 0; + u32 ctrl = 0; unsigned long flags; spin_lock_irqsave(&hdmi->reg_lock, flags); diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_audio.c b/drivers/gpu/drm/msm/hdmi/hdmi_audio.c index d9a8dc9dae8f..249c167ab04d 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_audio.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_audio.c @@ -17,8 +17,7 @@ int msm_hdmi_audio_update(struct hdmi *hdmi) { struct hdmi_audio *audio = &hdmi->audio; bool enabled = audio->enabled; - uint32_t acr_pkt_ctrl, vbi_pkt_ctrl, aud_pkt_ctrl; - uint32_t audio_config; + u32 acr_pkt_ctrl, vbi_pkt_ctrl, aud_pkt_ctrl, audio_config; if (!hdmi->connector->display_info.is_hdmi) return -EINVAL; @@ -43,7 +42,7 @@ int msm_hdmi_audio_update(struct hdmi *hdmi) acr_pkt_ctrl &= ~HDMI_ACR_PKT_CTRL_SELECT__MASK; if (enabled) { - uint32_t n, cts, multiplier; + u32 n, cts, multiplier; enum hdmi_acr_cts select; drm_hdmi_acr_get_n_cts(hdmi->pixclock, audio->rate, &n, &cts); diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c index 9b7012692ece..a9eb6489c520 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_bridge.c @@ -356,7 +356,7 @@ static void msm_hdmi_set_timings(struct hdmi *hdmi, const struct drm_display_mode *mode) { int hstart, hend, vstart, vend; - uint32_t frame_ctrl; + u32 frame_ctrl; hstart = mode->htotal - mode->hsync_start; hend = mode->htotal - mode->hsync_start + mode->hdisplay; @@ -409,7 +409,7 @@ static const struct drm_edid *msm_hdmi_bridge_edid_read(struct drm_bridge *bridg struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); struct hdmi *hdmi = hdmi_bridge->hdmi; const struct drm_edid *drm_edid; - uint32_t hdmi_ctrl; + u32 hdmi_ctrl; hdmi_ctrl = hdmi_read(hdmi, REG_HDMI_CTRL); hdmi_write(hdmi, REG_HDMI_CTRL, hdmi_ctrl | HDMI_CTRL_ENABLE); diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_hpd.c b/drivers/gpu/drm/msm/hdmi/hdmi_hpd.c index 114b0d507700..2cccd9062584 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_hpd.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_hpd.c @@ -65,7 +65,7 @@ void msm_hdmi_hpd_enable(struct drm_bridge *bridge) struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); struct hdmi *hdmi = hdmi_bridge->hdmi; struct device *dev = &hdmi->pdev->dev; - uint32_t hpd_ctrl; + u32 hpd_ctrl; int ret; unsigned long flags; @@ -125,7 +125,7 @@ void msm_hdmi_hpd_irq(struct drm_bridge *bridge) { struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); struct hdmi *hdmi = hdmi_bridge->hdmi; - uint32_t hpd_int_status, hpd_int_ctrl; + u32 hpd_int_status, hpd_int_ctrl; /* Process HPD: */ hpd_int_status = hdmi_read(hdmi, REG_HDMI_HPD_INT_STATUS); diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_i2c.c b/drivers/gpu/drm/msm/hdmi/hdmi_i2c.c index 6b9265159195..4a4a2cf90234 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_i2c.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_i2c.c @@ -40,8 +40,8 @@ static int ddc_clear_irq(struct hdmi_i2c_adapter *hdmi_i2c) { struct hdmi *hdmi = hdmi_i2c->hdmi; struct drm_device *dev = hdmi->dev; - uint32_t retry = 0xffff; - uint32_t ddc_int_ctrl; + u32 retry = 0xffff; + u32 ddc_int_ctrl; do { --retry; @@ -71,7 +71,7 @@ static bool sw_done(struct hdmi_i2c_adapter *hdmi_i2c) struct hdmi *hdmi = hdmi_i2c->hdmi; if (!hdmi_i2c->sw_done) { - uint32_t ddc_int_ctrl; + u32 ddc_int_ctrl; ddc_int_ctrl = hdmi_read(hdmi, REG_HDMI_DDC_INT_CTRL); @@ -92,13 +92,13 @@ static int msm_hdmi_i2c_xfer(struct i2c_adapter *i2c, struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); struct hdmi *hdmi = hdmi_i2c->hdmi; struct drm_device *dev = hdmi->dev; - static const uint32_t nack[] = { + static const u32 nack[] = { HDMI_DDC_SW_STATUS_NACK0, HDMI_DDC_SW_STATUS_NACK1, HDMI_DDC_SW_STATUS_NACK2, HDMI_DDC_SW_STATUS_NACK3, }; int indices[MAX_TRANSACTIONS]; int ret, i, j, index = 0; - uint32_t ddc_status, ddc_data, i2c_trans; + u32 ddc_status, ddc_data, i2c_trans; num = min(num, MAX_TRANSACTIONS); @@ -119,7 +119,7 @@ static int msm_hdmi_i2c_xfer(struct i2c_adapter *i2c, for (i = 0; i < num; i++) { struct i2c_msg *p = &msgs[i]; - uint32_t raw_addr = p->addr << 1; + u32 raw_addr = p->addr << 1; if (p->flags & I2C_M_RD) raw_addr |= 1; -- 2.51.0