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

index 2fde44c3a1b30f21eed4925b4e1ff9c5d7432d74..83f1406bd487e9d487349404ef7e87b56d330f2c 100644 (file)
@@ -65,13 +65,13 @@ static inline struct tegra_dpaux *work_to_dpaux(struct work_struct *work)
 }
 
 static inline u32 tegra_dpaux_readl(struct tegra_dpaux *dpaux,
-                                   unsigned long offset)
+                                   unsigned int offset)
 {
        return readl(dpaux->regs + (offset << 2));
 }
 
 static inline void tegra_dpaux_writel(struct tegra_dpaux *dpaux,
-                                     u32 value, unsigned long offset)
+                                     u32 value, unsigned int offset)
 {
        writel(value, dpaux->regs + (offset << 2));
 }