summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/channel.c
diff options
context:
space:
mode:
authorThierry Reding2016-06-22 16:44:07 +0200
committerThierry Reding2016-06-23 11:59:23 +0200
commit14c95fc896e1d3929abde448fd86c07bdbae56d5 (patch)
tree78b837fe661ba226e33e4ff824b1ef475f5867cc /drivers/gpu/host1x/channel.c
parentgpu: host1x: hw: intr_hw: Remove create_workqueue (diff)
downloadkernel-qcow2-linux-14c95fc896e1d3929abde448fd86c07bdbae56d5.tar.gz
kernel-qcow2-linux-14c95fc896e1d3929abde448fd86c07bdbae56d5.tar.xz
kernel-qcow2-linux-14c95fc896e1d3929abde448fd86c07bdbae56d5.zip
gpu: host1x: Consistently use unsigned int for counts
The number of channels, syncpoints, bases and mlocks can never be negative, so use unsigned int instead of int. Also make loop variables the same type for consistency. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/channel.c')
-rw-r--r--drivers/gpu/host1x/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/channel.c b/drivers/gpu/host1x/channel.c
index b4ae3affb987..78f0ef0f6c89 100644
--- a/drivers/gpu/host1x/channel.c
+++ b/drivers/gpu/host1x/channel.c
@@ -83,7 +83,7 @@ EXPORT_SYMBOL(host1x_channel_put);
struct host1x_channel *host1x_channel_request(struct device *dev)
{
struct host1x *host = dev_get_drvdata(dev->parent);
- int max_channels = host->info->nb_channels;
+ unsigned int max_channels = host->info->nb_channels;
struct host1x_channel *channel = NULL;
int index, err;