[lkml]   [2019]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] gpu: host1x: fix mismatch between function definitions and declarations
From: Colin Ian King <>

Three functions have arguments r and v swapped in their function
declarations in the header file dev.h compared to their definitions
in dev.c. Swap the order in the header file to fix this.

Fixes: f1b53c4e2c08 ("gpu: host1x: Add Tegra186 support")
Fixes: 6579324a41cc ("gpu: host1x: Add channel support")
Fixes: 754716874389 ("gpu: host1x: Add host1x driver")
Signed-off-by: Colin Ian King <>
drivers/gpu/host1x/dev.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h
index 05216a7e4830..f85138229fbe 100644
--- a/drivers/gpu/host1x/dev.h
+++ b/drivers/gpu/host1x/dev.h
@@ -153,11 +153,11 @@ struct host1x {
struct list_head list;

-void host1x_hypervisor_writel(struct host1x *host1x, u32 r, u32 v);
+void host1x_hypervisor_writel(struct host1x *host1x, u32 v, u32 r);
u32 host1x_hypervisor_readl(struct host1x *host1x, u32 r);
-void host1x_sync_writel(struct host1x *host1x, u32 r, u32 v);
+void host1x_sync_writel(struct host1x *host1x, u32 v, u32 r);
u32 host1x_sync_readl(struct host1x *host1x, u32 r);
-void host1x_ch_writel(struct host1x_channel *ch, u32 r, u32 v);
+void host1x_ch_writel(struct host1x_channel *ch, u32 v, u32 r);
u32 host1x_ch_readl(struct host1x_channel *ch, u32 r);

static inline void host1x_hw_syncpt_restore(struct host1x *host,
 \ /
  Last update: 2019-03-17 23:48    [W:0.026 / U:34.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site