Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/gpu/drm/tegra/sor.c
··· 232 232 return container_of(output, struct tegra_sor, output); 233 233 } 234 234 235 - static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned long offset) 235 + static inline u32 tegra_sor_readl(struct tegra_sor *sor, unsigned int offset) 236 236 { 237 237 return readl(sor->regs + (offset << 2)); 238 238 } 239 239 240 240 static inline void tegra_sor_writel(struct tegra_sor *sor, u32 value, 241 - unsigned long offset) 241 + unsigned int offset) 242 242 { 243 243 writel(value, sor->regs + (offset << 2)); 244 244 }