drm/tegra: hdmi: Use unsigned int for register offsets
authorThierry Reding <treding@nvidia.com>
Tue, 15 Aug 2017 13:41:08 +0000 (15:41 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 15:57:13 +0000 (17:57 +0200)
Register offsets are usually fairly small numbers, so an unsigned int is
more than enough to represent them.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/hdmi.c

index cda0491ed6bf80f2e77fd668adaff5d1233d7e94..9161adaf94c1837d56518fed4c64d56d8fa13ba4 100644 (file)
@@ -100,13 +100,13 @@ enum {
 };
 
 static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi,
-                                  unsigned long offset)
+                                  unsigned int offset)
 {
        return readl(hdmi->regs + (offset << 2));
 }
 
 static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value,
-                                    unsigned long offset)
+                                    unsigned int offset)
 {
        writel(value, hdmi->regs + (offset << 2));
 }