diff options
author | Thierry Reding <treding@nvidia.com> | 2017-08-15 15:41:05 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-08-17 17:57:11 +0200 |
commit | 3be713be1fbcbdb8fd66e06d58cafd7761498fdd (patch) | |
tree | d517205810aa44cef9466cf3a2cd805307dc8f02 /drivers | |
parent | 68d890a3cca5a96a5443972922c84df89f6301e6 (diff) | |
download | linux-stable-3be713be1fbcbdb8fd66e06d58cafd7761498fdd.tar.gz linux-stable-3be713be1fbcbdb8fd66e06d58cafd7761498fdd.tar.bz2 linux-stable-3be713be1fbcbdb8fd66e06d58cafd7761498fdd.zip |
drm/tegra: dc: Use unsigned int for register offsets
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/drm.h b/drivers/gpu/drm/tegra/drm.h index 6d6da01282f3..de1bcc519905 100644 --- a/drivers/gpu/drm/tegra/drm.h +++ b/drivers/gpu/drm/tegra/drm.h @@ -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)); } |