summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/channel.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2018-06-18 14:01:51 +0200
committerThierry Reding <treding@nvidia.com>2019-10-28 11:18:33 +0100
commitcaccddcfc4b4de75930df2e8f7fd0c66556b13ff (patch)
treebac6706f2105a3557acea1b2a634bc0e99c0fa21 /drivers/gpu/host1x/channel.h
parent8f45f5071ad2be6ace6f77892e0015e89fd42028 (diff)
gpu: host1x: Request channels for clients, not devices
A struct device doesn't carry much information that a channel might be interested in, but the client very much does. Request channels for the clients rather than their parent devices and store a pointer to them in order to have that information available when needed. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/channel.h')
-rw-r--r--drivers/gpu/host1x/channel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/channel.h b/drivers/gpu/host1x/channel.h
index 4fd694834f74..39044ff6c3aa 100644
--- a/drivers/gpu/host1x/channel.h
+++ b/drivers/gpu/host1x/channel.h
@@ -26,6 +26,7 @@ struct host1x_channel {
unsigned int id;
struct mutex submitlock;
void __iomem *regs;
+ struct host1x_client *client;
struct device *dev;
struct host1x_cdma cdma;
};