summaryrefslogtreecommitdiff
path: root/include/linux/host1x.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2021-03-30 20:53:03 +0300
committerThierry Reding <treding@nvidia.com>2021-03-30 20:53:03 +0300
commit01990be33389d59f6b5c7dce0e8580263df1aa0c (patch)
treeaf93d1d5298b783cd031bdee147984a23ce3d2eb /include/linux/host1x.h
parent51c3b916a4d7e24b4918925965867fdd9bd8dd59 (diff)
parentac097aecfef0bb289ca53d2fe0b73fc7e1612a05 (diff)
downloadlinux-01990be33389d59f6b5c7dce0e8580263df1aa0c.tar.xz
Merge branch 'drm/tegra/fixes' into drm/tegra/for-next
Diffstat (limited to 'include/linux/host1x.h')
-rw-r--r--include/linux/host1x.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/host1x.h b/include/linux/host1x.h
index ce59a6a6a008..9eb77c87a83b 100644
--- a/include/linux/host1x.h
+++ b/include/linux/host1x.h
@@ -320,7 +320,14 @@ static inline struct host1x_device *to_host1x_device(struct device *dev)
int host1x_device_init(struct host1x_device *device);
int host1x_device_exit(struct host1x_device *device);
-int host1x_client_register(struct host1x_client *client);
+int __host1x_client_register(struct host1x_client *client,
+ struct lock_class_key *key);
+#define host1x_client_register(class) \
+ ({ \
+ static struct lock_class_key __key; \
+ __host1x_client_register(class, &__key); \
+ })
+
int host1x_client_unregister(struct host1x_client *client);
int host1x_client_suspend(struct host1x_client *client);