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

gpu: host1x: Fix _writel function declarations

Some of the _writel functions in dev.h had the r and v parameters
swapped. Fix this to avoid confusion.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240425050238.2943404-1-cyndis@kapsi.fi

authored by

Mikko Perttunen and committed by
Thierry Reding
955df44b f5b8794e

+3 -3
+3 -3
drivers/gpu/host1x/dev.h
··· 175 175 }; 176 176 177 177 void host1x_common_writel(struct host1x *host1x, u32 v, u32 r); 178 - void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v); 178 + void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r); 179 179 u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r); 180 - void host1x_sync_writel(struct host1x *host1x, u32 r, u32 v); 180 + void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r); 181 181 u32 host1x_sync_readl(struct host1x *host1x, u32 r); 182 - void host1x_ch_writel(struct host1x_channel *ch, u32 r, u32 v); 182 + void host1x_ch_writel(struct host1x_channel *ch, u32 v, u32 r); 183 183 u32 host1x_ch_readl(struct host1x_channel *ch, u32 r); 184 184 185 185 static inline void host1x_hw_syncpt_restore(struct host1x *host,