projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1283107
)
drm/tegra: hdmi: Use unsigned int for register offsets
author
Thierry Reding
<treding@nvidia.com>
Tue, 15 Aug 2017 13:41:08 +0000
(15:41 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Thu, 17 Aug 2017 15:57:13 +0000
(17:57 +0200)
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>
drivers/gpu/drm/tegra/hdmi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/tegra/hdmi.c
b/drivers/gpu/drm/tegra/hdmi.c
index cda0491ed6bf80f2e77fd668adaff5d1233d7e94..9161adaf94c1837d56518fed4c64d56d8fa13ba4 100644
(file)
--- 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));
}