diff options
author | Thierry Reding <treding@nvidia.com> | 2016-06-23 12:19:00 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-23 12:59:24 +0300 |
commit | 5c0d8d386ba67ce07bfddcebf05233e8606771ff (patch) | |
tree | 1ff111f24857adecf28ec2c3bd80ea1d77e7c922 /drivers/gpu/host1x/hw/cdma_hw.c | |
parent | 14c95fc896e1d3929abde448fd86c07bdbae56d5 (diff) | |
download | linux-5c0d8d386ba67ce07bfddcebf05233e8606771ff.tar.xz |
gpu: host1x: Use unsigned int consistently for IDs
IDs can never be negative so use unsigned int. In some instances an
explicitly sized type (such as u32) was used for no particular reason,
so turn those into unsigned int as well for consistency.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/hw/cdma_hw.c')
-rw-r--r-- | drivers/gpu/host1x/hw/cdma_hw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/host1x/hw/cdma_hw.c b/drivers/gpu/host1x/hw/cdma_hw.c index 233246e1235a..e0db00613bca 100644 --- a/drivers/gpu/host1x/hw/cdma_hw.c +++ b/drivers/gpu/host1x/hw/cdma_hw.c @@ -213,7 +213,7 @@ static void cdma_resume(struct host1x_cdma *cdma, u32 getptr) u32 cmdproc_stop; dev_dbg(host1x->dev, - "resuming channel (id %d, DMAGET restart = 0x%x)\n", + "resuming channel (id %u, DMAGET restart = 0x%x)\n", ch->id, getptr); cmdproc_stop = host1x_sync_readl(host1x, HOST1X_SYNC_CMDPROC_STOP); @@ -277,7 +277,7 @@ static void cdma_timeout_handler(struct work_struct *work) return; } - dev_warn(host1x->dev, "%s: timeout: %d (%s), HW thresh %d, done %d\n", + dev_warn(host1x->dev, "%s: timeout: %u (%s), HW thresh %d, done %d\n", __func__, cdma->timeout.syncpt->id, cdma->timeout.syncpt->name, syncpt_val, cdma->timeout.syncpt_val); @@ -291,7 +291,7 @@ static void cdma_timeout_handler(struct work_struct *work) /* * Init timeout resources */ -static int cdma_timeout_init(struct host1x_cdma *cdma, u32 syncpt_id) +static int cdma_timeout_init(struct host1x_cdma *cdma, unsigned int syncpt) { INIT_DELAYED_WORK(&cdma->timeout.wq, cdma_timeout_handler); cdma->timeout.initialized = true; |