drm/tegra: dc: Use unsigned int for register offsets
authorThierry Reding <treding@nvidia.com>
Tue, 15 Aug 2017 13:41:05 +0000 (15:41 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 17 Aug 2017 15:57:11 +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/drm.h

index 6d6da01282f315e38d1547f1df05e06ac406d41b..de1bcc51990539530a602535f93e7bfee156e3ae 100644 (file)
@@ -172,12 +172,12 @@ static inline struct tegra_dc *to_tegra_dc(struct drm_crtc *crtc)
 }
 
 static inline void tegra_dc_writel(struct tegra_dc *dc, u32 value,
-                                  unsigned long offset)
+                                  unsigned int offset)
 {
        writel(value, dc->regs + (offset << 2));
 }
 
-static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned long offset)
+static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned int offset)
 {
        return readl(dc->regs + (offset << 2));
 }