Commit e8ddfdcb authored by Thierry Reding's avatar Thierry Reding

drm/tegra: dpaux: 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: default avatarThierry Reding <treding@nvidia.com>
parent 3be713be
...@@ -65,13 +65,13 @@ static inline struct tegra_dpaux *work_to_dpaux(struct work_struct *work) ...@@ -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, static inline u32 tegra_dpaux_readl(struct tegra_dpaux *dpaux,
unsigned long offset) unsigned int offset)
{ {
return readl(dpaux->regs + (offset << 2)); return readl(dpaux->regs + (offset << 2));
} }
static inline void tegra_dpaux_writel(struct tegra_dpaux *dpaux, 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)); writel(value, dpaux->regs + (offset << 2));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment