Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 326bbd79 authored by Thierry Reding's avatar Thierry Reding
Browse files

gpu: host1x: Use not explicitly sized types



The number of words and the offset in a gather don't need to be
explicitly sized, so make them unsigned int instead.

Reviewed-by: default avatarDmitry Osipenko <digetx@gmail.com>
Tested-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent 06490bb9
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -96,13 +96,14 @@ void host1x_job_put(struct host1x_job *job)
EXPORT_SYMBOL(host1x_job_put);

void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *bo,
			   u32 words, u32 offset)
			   unsigned int words, unsigned int offset)
{
	struct host1x_job_gather *cur_gather = &job->gathers[job->num_gathers];
	struct host1x_job_gather *gather = &job->gathers[job->num_gathers];

	gather->words = words;
	gather->bo = bo;
	gather->offset = offset;

	cur_gather->words = words;
	cur_gather->bo = bo;
	cur_gather->offset = offset;
	job->num_gathers++;
}
EXPORT_SYMBOL(host1x_job_add_gather);
+2 −2
Original line number Diff line number Diff line
@@ -20,10 +20,10 @@
#define __HOST1X_JOB_H

struct host1x_job_gather {
	u32 words;
	unsigned int words;
	dma_addr_t base;
	struct host1x_bo *bo;
	u32 offset;
	unsigned int offset;
	bool handled;
};

+2 −2
Original line number Diff line number Diff line
@@ -251,8 +251,8 @@ struct host1x_job {

struct host1x_job *host1x_job_alloc(struct host1x_channel *ch,
				    u32 num_cmdbufs, u32 num_relocs);
void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *mem_id,
			   u32 words, u32 offset);
void host1x_job_add_gather(struct host1x_job *job, struct host1x_bo *bo,
			   unsigned int words, unsigned int offset);
struct host1x_job *host1x_job_get(struct host1x_job *job);
void host1x_job_put(struct host1x_job *job);
int host1x_job_pin(struct host1x_job *job, struct device *dev);