mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 17:11:46 +00:00
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>
This commit is contained in:
parent
8f45f5071a
commit
caccddcfc4
6 changed files with 12 additions and 10 deletions
|
@ -158,7 +158,7 @@ u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base);
|
|||
struct host1x_channel;
|
||||
struct host1x_job;
|
||||
|
||||
struct host1x_channel *host1x_channel_request(struct device *dev);
|
||||
struct host1x_channel *host1x_channel_request(struct host1x_client *client);
|
||||
struct host1x_channel *host1x_channel_get(struct host1x_channel *channel);
|
||||
void host1x_channel_put(struct host1x_channel *channel);
|
||||
int host1x_job_submit(struct host1x_job *job);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue