From: Thierry Reding Date: Tue, 15 Aug 2017 13:41:08 +0000 (+0200) Subject: drm/tegra: hdmi: Use unsigned int for register offsets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7efe20cf11655e860ae2852ebefebff244ddabb6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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)); }