summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2017-08-15 15:41:08 +0200
committerThierry Reding <treding@nvidia.com>2017-08-17 17:57:13 +0200
commit7efe20cf11655e860ae2852ebefebff244ddabb6 (patch)
tree17ea40d23961b9cd540fb0e96a3629b7d9b88465 /drivers/gpu/drm/tegra
parent12831076ac366e887e648a1d27ab3361a7b315b8 (diff)
downloadtalos-op-linux-7efe20cf11655e860ae2852ebefebff244ddabb6.tar.gz
talos-op-linux-7efe20cf11655e860ae2852ebefebff244ddabb6.zip
drm/tegra: hdmi: 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/gpu/drm/tegra')
-rw-r--r--drivers/gpu/drm/tegra/hdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c
index cda0491ed6bf..9161adaf94c1 100644
--- a/drivers/gpu/drm/tegra/hdmi.c
+++ b/drivers/gpu/drm/tegra/hdmi.c
@@ -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));
}
OpenPOWER on IntegriCloud