mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
drm/tegra: dc: 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
68d890a3cc
commit
3be713be1f
1 changed files with 2 additions and 2 deletions
|
@ -172,12 +172,12 @@ static inline struct tegra_dc *to_tegra_dc(struct drm_crtc *crtc)
|
|||
}
|
||||
|
||||
static inline void tegra_dc_writel(struct tegra_dc *dc, u32 value,
|
||||
unsigned long offset)
|
||||
unsigned int offset)
|
||||
{
|
||||
writel(value, dc->regs + (offset << 2));
|
||||
}
|
||||
|
||||
static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned long offset)
|
||||
static inline u32 tegra_dc_readl(struct tegra_dc *dc, unsigned int offset)
|
||||
{
|
||||
return readl(dc->regs + (offset << 2));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue