提交 7efe20cf 编写于 作者: T Thierry Reding

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: NThierry Reding <treding@nvidia.com>
上级 12831076
...@@ -100,13 +100,13 @@ enum { ...@@ -100,13 +100,13 @@ enum {
}; };
static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi, static inline u32 tegra_hdmi_readl(struct tegra_hdmi *hdmi,
unsigned long offset) unsigned int offset)
{ {
return readl(hdmi->regs + (offset << 2)); return readl(hdmi->regs + (offset << 2));
} }
static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value, static inline void tegra_hdmi_writel(struct tegra_hdmi *hdmi, u32 value,
unsigned long offset) unsigned int offset)
{ {
writel(value, hdmi->regs + (offset << 2)); writel(value, hdmi->regs + (offset << 2));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册