aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-08-15 09:41:09 -0400
committerThierry Reding <treding@nvidia.com>2017-08-17 11:57:14 -0400
commit5c5f13016d2f4d5144418bec57a75490c5f9fc96 (patch)
treea1f95cbcd0ad4fc0830095ea3dd3188db27d6eb5
parent7efe20cf11655e860ae2852ebefebff244ddabb6 (diff)
drm/tegra: sor: 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>
-rw-r--r--drivers/gpu/drm/tegra/sor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c
index a8f528925009..d0f189c5171d 100644
--- a/drivers/gpu/drm/tegra/sor.c
+++ b/drivers/gpu/drm/tegra/sor.c
@@ -232,13 +232,13 @@ static inline struct tegra_sor *to_sor(struct tegra_output *output)
232 return container_of(output, struct tegra_sor, output); 232 return container_of(output, struct tegra_sor, output);
233} 233}
234 234
235static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned long offset) 235static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned int offset)
236{ 236{
237 return readl(sor->regs + (offset << 2)); 237 return readl(sor->regs + (offset << 2));
238} 238}
239 239
240static inline void tegra_sor_writel(struct tegra_sor *sor, u32 value, 240static inline void tegra_sor_writel(struct tegra_sor *sor, u32 value,
241 unsigned long offset) 241 unsigned int offset)
242{ 242{
243 writel(value, sor->regs + (offset << 2)); 243 writel(value, sor->regs + (offset << 2));
244} 244}