]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/msm/hdmi: Drop redundant 'int' for longs
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 11 Mar 2026 20:17:29 +0000 (21:17 +0100)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 25 Mar 2026 06:06:09 +0000 (08:06 +0200)
'long' type is already an integer, so 'int' is redundant.

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/711175/
Link: https://lore.kernel.org/r/20260311-drm-msm-hdmi-cleanup-v1-5-c5535245f6de@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/msm/hdmi/hdmi.h
drivers/gpu/drm/msm/hdmi/hdmi_phy.c
drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c
drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c
drivers/gpu/drm/msm/hdmi/hdmi_phy_8x74.c

index 02cfd46df5940ca86c165f88164b17905b34a47c..49433f7727c31dbde54f1f6f05576e958a64b74d 100644 (file)
@@ -43,7 +43,7 @@ struct hdmi {
        bool power_on;
        bool hpd_enabled;
        struct mutex state_mutex; /* protects two booleans */
-       unsigned long int pixclock;
+       unsigned long pixclock;
 
        void __iomem *mmio;
        void __iomem *qfprom_mmio;
@@ -132,7 +132,7 @@ enum hdmi_phy_type {
 
 struct hdmi_phy_cfg {
        enum hdmi_phy_type type;
-       void (*powerup)(struct hdmi_phy *phy, unsigned long int pixclock);
+       void (*powerup)(struct hdmi_phy *phy, unsigned long pixclock);
        void (*powerdown)(struct hdmi_phy *phy);
        const char * const *reg_names;
        int num_regs;
@@ -167,7 +167,7 @@ static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg)
 
 int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy);
 void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy);
-void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
+void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long pixclock);
 void msm_hdmi_phy_powerdown(struct hdmi_phy *phy);
 void __init msm_hdmi_phy_driver_register(void);
 void __exit msm_hdmi_phy_driver_unregister(void);
index f726555bb681053742afac20a18f78ddc75be01d..eb1088755cb3a8122f8ff6d3c550430e5e85e365 100644 (file)
@@ -94,7 +94,7 @@ void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy)
        pm_runtime_put_sync(dev);
 }
 
-void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock)
+void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long pixclock)
 {
        if (!phy || !phy->cfg->powerup)
                return;
index cf90a0c1f82205eb29b4903de0de65077ee80362..cfa8fc4941997e508c5333f4f3d37d7e0478ce71 100644 (file)
@@ -7,7 +7,7 @@
 #include "hdmi.h"
 
 static void hdmi_phy_8960_powerup(struct hdmi_phy *phy,
-                                 unsigned long int pixclock)
+                                 unsigned long pixclock)
 {
        DBG("pixclock: %lu", pixclock);
 
index 1d97640d8c24aa62f5f80e58ca6408f51fbfe38f..10ee9181836424fc1e0b92562c239725a6bb3fb8 100644 (file)
@@ -9,7 +9,7 @@
 #include "hdmi.h"
 
 static void hdmi_phy_8x60_powerup(struct hdmi_phy *phy,
-               unsigned long int pixclock)
+                                 unsigned long pixclock)
 {
        /* De-serializer delay D/C for non-lbk mode: */
        hdmi_phy_write(phy, REG_HDMI_8x60_PHY_REG0,
index a2a6940e195a0788a3d84de0171565510ef60623..6f40820d9071392ff00072cd0aa77e3e7c355b57 100644 (file)
@@ -7,7 +7,7 @@
 #include "hdmi.h"
 
 static void hdmi_phy_8x74_powerup(struct hdmi_phy *phy,
-               unsigned long int pixclock)
+                                 unsigned long pixclock)
 {
        hdmi_phy_write(phy, REG_HDMI_8x74_ANA_CFG0,   0x1b);
        hdmi_phy_write(phy, REG_HDMI_8x74_ANA_CFG1,   0xf2);