summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/intr.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-05-16 14:29:33 +0200
committerThierry Reding <treding@nvidia.com>2018-05-18 21:51:01 +0200
commitac330f45c7ca5b92e78b369c7034160947f03b8d (patch)
treecf630cc33bf9c5bcb5f833c917d5a05ce4e84769 /drivers/gpu/host1x/intr.h
parentd4ad3ad9b81b73f568227563988b67708291900b (diff)
downloadlinux-ac330f45c7ca5b92e78b369c7034160947f03b8d.tar.bz2
gpu: host1x: Drop unnecessary host1x argument
Functions taking a pointer to a host1x syncpoint as an argument don't need to specify a pointer to a host1x instance because it can be obtained from the syncpoint. Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Tested-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/intr.h')
-rw-r--r--drivers/gpu/host1x/intr.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/host1x/intr.h b/drivers/gpu/host1x/intr.h
index 1370c2bb75b8..6db96af484fe 100644
--- a/drivers/gpu/host1x/intr.h
+++ b/drivers/gpu/host1x/intr.h
@@ -22,6 +22,7 @@
#include <linux/interrupt.h>
#include <linux/workqueue.h>
+struct host1x_syncpt;
struct host1x;
enum host1x_intr_action {
@@ -75,9 +76,10 @@ struct host1x_waitlist {
*
* This is a non-blocking api.
*/
-int host1x_intr_add_action(struct host1x *host, unsigned int id, u32 thresh,
- enum host1x_intr_action action, void *data,
- struct host1x_waitlist *waiter, void **ref);
+int host1x_intr_add_action(struct host1x *host, struct host1x_syncpt *syncpt,
+ u32 thresh, enum host1x_intr_action action,
+ void *data, struct host1x_waitlist *waiter,
+ void **ref);
/*
* Unreference an action submitted to host1x_intr_add_action().