aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/dev.h
diff options
context:
space:
mode:
authorArto Merilainen <amerilainen@nvidia.com>2013-05-29 06:26:08 -0400
committerThierry Reding <thierry.reding@gmail.com>2013-06-22 06:43:55 -0400
commitebae30b1fbcc2cc991ce705cc82e16d1e5ddbf51 (patch)
tree9a483e8a9ad7b41ef69784afe1b106a6ec168bac /drivers/gpu/host1x/dev.h
parentece66891ff452d5643ac5a61649f632984d83c10 (diff)
gpu: host1x: Rework CPU syncpoint increment
This patch merges host1x_syncpt_cpu_incr to host1x_syncpt_incr() as they are in practise doing the same thing. host1x_syncpt_incr() is also modified to return error codes. User space interface is modified accordingly to pass return values. Signed-off-by: Arto Merilainen <amerilainen@nvidia.com> Acked-By: Terje Bergstrom <tbergstrom@nvidia.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/gpu/host1x/dev.h')
-rw-r--r--drivers/gpu/host1x/dev.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/host1x/dev.h b/drivers/gpu/host1x/dev.h
index a1607d6e135b..790ddf114e58 100644
--- a/drivers/gpu/host1x/dev.h
+++ b/drivers/gpu/host1x/dev.h
@@ -73,7 +73,7 @@ struct host1x_syncpt_ops {
73 void (*restore_wait_base)(struct host1x_syncpt *syncpt); 73 void (*restore_wait_base)(struct host1x_syncpt *syncpt);
74 void (*load_wait_base)(struct host1x_syncpt *syncpt); 74 void (*load_wait_base)(struct host1x_syncpt *syncpt);
75 u32 (*load)(struct host1x_syncpt *syncpt); 75 u32 (*load)(struct host1x_syncpt *syncpt);
76 void (*cpu_incr)(struct host1x_syncpt *syncpt); 76 int (*cpu_incr)(struct host1x_syncpt *syncpt);
77 int (*patch_wait)(struct host1x_syncpt *syncpt, void *patch_addr); 77 int (*patch_wait)(struct host1x_syncpt *syncpt, void *patch_addr);
78}; 78};
79 79
@@ -157,10 +157,10 @@ static inline u32 host1x_hw_syncpt_load(struct host1x *host,
157 return host->syncpt_op->load(sp); 157 return host->syncpt_op->load(sp);
158} 158}
159 159
160static inline void host1x_hw_syncpt_cpu_incr(struct host1x *host, 160static inline int host1x_hw_syncpt_cpu_incr(struct host1x *host,
161 struct host1x_syncpt *sp) 161 struct host1x_syncpt *sp)
162{ 162{
163 host->syncpt_op->cpu_incr(sp); 163 return host->syncpt_op->cpu_incr(sp);
164} 164}
165 165
166static inline int host1x_hw_syncpt_patch_wait(struct host1x *host, 166static inline int host1x_hw_syncpt_patch_wait(struct host1x *host,