mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 06:08:22 +00:00
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>
This commit is contained in:
parent
12831076ac
commit
7efe20cf11
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue