History

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.

Thierry Reding committed 8 years ago

Commit caccddc1 parent 8f45f506 files · +12 −10Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/host1x.h+1−1
@@ -158,7 +158,7 @@ u32 host1x_syncpt_base_id(struct host1x_syncpt_base *base); · 157 unmodified lines
158struct host1x_channel;158struct host1x_channel;
159struct host1x_job;159struct host1x_job;
160 160
161struct host1x_channel *host1x_channel_request(struct device *dev);161struct host1x_channel *host1x_channel_request(struct host1x_client *client);
162struct host1x_channel *host1x_channel_get(struct host1x_channel *channel);162struct host1x_channel *host1x_channel_get(struct host1x_channel *channel);
163void host1x_channel_put(struct host1x_channel *channel);163void host1x_channel_put(struct host1x_channel *channel);
164int host1x_job_submit(struct host1x_job *job);164int host1x_job_submit(struct host1x_job *job);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t