Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/msm/hdmi: Consistently use u32 instead of uint32_t

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 <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/711172/
Link: https://lore.kernel.org/r/20260311-drm-msm-hdmi-cleanup-v1-4-c5535245f6de@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

authored by

Krzysztof Kozlowski and committed by
Dmitry Baryshkov
bc11794c 69c68ab3

+13 -14
+1 -1
drivers/gpu/drm/msm/hdmi/hdmi.c
··· 20 20 21 21 void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on) 22 22 { 23 - uint32_t ctrl = 0; 23 + u32 ctrl = 0; 24 24 unsigned long flags; 25 25 26 26 spin_lock_irqsave(&hdmi->reg_lock, flags);
+2 -3
drivers/gpu/drm/msm/hdmi/hdmi_audio.c
··· 17 17 { 18 18 struct hdmi_audio *audio = &hdmi->audio; 19 19 bool enabled = audio->enabled; 20 - uint32_t acr_pkt_ctrl, vbi_pkt_ctrl, aud_pkt_ctrl; 21 - uint32_t audio_config; 20 + u32 acr_pkt_ctrl, vbi_pkt_ctrl, aud_pkt_ctrl, audio_config; 22 21 23 22 if (!hdmi->connector->display_info.is_hdmi) 24 23 return -EINVAL; ··· 42 43 acr_pkt_ctrl &= ~HDMI_ACR_PKT_CTRL_SELECT__MASK; 43 44 44 45 if (enabled) { 45 - uint32_t n, cts, multiplier; 46 + u32 n, cts, multiplier; 46 47 enum hdmi_acr_cts select; 47 48 48 49 drm_hdmi_acr_get_n_cts(hdmi->pixclock, audio->rate, &n, &cts);
+2 -2
drivers/gpu/drm/msm/hdmi/hdmi_bridge.c
··· 355 355 const struct drm_display_mode *mode) 356 356 { 357 357 int hstart, hend, vstart, vend; 358 - uint32_t frame_ctrl; 358 + u32 frame_ctrl; 359 359 360 360 hstart = mode->htotal - mode->hsync_start; 361 361 hend = mode->htotal - mode->hsync_start + mode->hdisplay; ··· 408 408 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); 409 409 struct hdmi *hdmi = hdmi_bridge->hdmi; 410 410 const struct drm_edid *drm_edid; 411 - uint32_t hdmi_ctrl; 411 + u32 hdmi_ctrl; 412 412 413 413 hdmi_ctrl = hdmi_read(hdmi, REG_HDMI_CTRL); 414 414 hdmi_write(hdmi, REG_HDMI_CTRL, hdmi_ctrl | HDMI_CTRL_ENABLE);
+2 -2
drivers/gpu/drm/msm/hdmi/hdmi_hpd.c
··· 65 65 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); 66 66 struct hdmi *hdmi = hdmi_bridge->hdmi; 67 67 struct device *dev = &hdmi->pdev->dev; 68 - uint32_t hpd_ctrl; 68 + u32 hpd_ctrl; 69 69 int ret; 70 70 unsigned long flags; 71 71 ··· 125 125 { 126 126 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge); 127 127 struct hdmi *hdmi = hdmi_bridge->hdmi; 128 - uint32_t hpd_int_status, hpd_int_ctrl; 128 + u32 hpd_int_status, hpd_int_ctrl; 129 129 130 130 /* Process HPD: */ 131 131 hpd_int_status = hdmi_read(hdmi, REG_HDMI_HPD_INT_STATUS);
+6 -6
drivers/gpu/drm/msm/hdmi/hdmi_i2c.c
··· 40 40 { 41 41 struct hdmi *hdmi = hdmi_i2c->hdmi; 42 42 struct drm_device *dev = hdmi->dev; 43 - uint32_t retry = 0xffff; 44 - uint32_t ddc_int_ctrl; 43 + u32 retry = 0xffff; 44 + u32 ddc_int_ctrl; 45 45 46 46 do { 47 47 --retry; ··· 71 71 struct hdmi *hdmi = hdmi_i2c->hdmi; 72 72 73 73 if (!hdmi_i2c->sw_done) { 74 - uint32_t ddc_int_ctrl; 74 + u32 ddc_int_ctrl; 75 75 76 76 ddc_int_ctrl = hdmi_read(hdmi, REG_HDMI_DDC_INT_CTRL); 77 77 ··· 92 92 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c); 93 93 struct hdmi *hdmi = hdmi_i2c->hdmi; 94 94 struct drm_device *dev = hdmi->dev; 95 - static const uint32_t nack[] = { 95 + static const u32 nack[] = { 96 96 HDMI_DDC_SW_STATUS_NACK0, HDMI_DDC_SW_STATUS_NACK1, 97 97 HDMI_DDC_SW_STATUS_NACK2, HDMI_DDC_SW_STATUS_NACK3, 98 98 }; 99 99 int indices[MAX_TRANSACTIONS]; 100 100 int ret, i, j, index = 0; 101 - uint32_t ddc_status, ddc_data, i2c_trans; 101 + u32 ddc_status, ddc_data, i2c_trans; 102 102 103 103 num = min(num, MAX_TRANSACTIONS); 104 104 ··· 119 119 120 120 for (i = 0; i < num; i++) { 121 121 struct i2c_msg *p = &msgs[i]; 122 - uint32_t raw_addr = p->addr << 1; 122 + u32 raw_addr = p->addr << 1; 123 123 124 124 if (p->flags & I2C_M_RD) 125 125 raw_addr |= 1;