mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
drm/tegra: sor: 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
7efe20cf11
commit
5c5f13016d
1 changed files with 2 additions and 2 deletions
|
@ -232,13 +232,13 @@ static inline struct tegra_sor *to_sor(struct tegra_output *output)
|
|||
return container_of(output, struct tegra_sor, output);
|
||||
}
|
||||
|
||||
static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned long offset)
|
||||
static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned int offset)
|
||||
{
|
||||
return readl(sor->regs + (offset << 2));
|
||||
}
|
||||
|
||||
static inline void tegra_sor_writel(struct tegra_sor *sor, u32 value,
|
||||
unsigned long offset)
|
||||
unsigned int offset)
|
||||
{
|
||||
writel(value, sor->regs + (offset << 2));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue