瀏覽代碼

gpu: host1x: Make gather offsets unsigned

Use the u32 type for the offset in the host1x_job_gather structure for
consistentcy with other structures. Negative offsets don't make sense in
this context.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Thierry Reding 11 年之前
父節點
當前提交
3880e95f27
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/gpu/host1x/job.h

+ 1 - 1
drivers/gpu/host1x/job.h

@@ -23,7 +23,7 @@ struct host1x_job_gather {
 	u32 words;
 	u32 words;
 	dma_addr_t base;
 	dma_addr_t base;
 	struct host1x_bo *bo;
 	struct host1x_bo *bo;
-	int offset;
+	u32 offset;
 	bool handled;
 	bool handled;
 };
 };