diff options
author | Thierry Reding <treding@nvidia.com> | 2016-06-22 16:44:07 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-06-23 11:59:23 +0200 |
commit | 14c95fc896e1d3929abde448fd86c07bdbae56d5 (patch) | |
tree | 78b837fe661ba226e33e4ff824b1ef475f5867cc /drivers/gpu/host1x/syncpt.h | |
parent | 57574bd779852bb7328ade70c951b681b54a7ece (diff) |
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/syncpt.h')
-rw-r--r-- | drivers/gpu/host1x/syncpt.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/host1x/syncpt.h b/drivers/gpu/host1x/syncpt.h index 9056465ecd3f..6916feff0c29 100644 --- a/drivers/gpu/host1x/syncpt.h +++ b/drivers/gpu/host1x/syncpt.h @@ -58,13 +58,13 @@ int host1x_syncpt_init(struct host1x *host); void host1x_syncpt_deinit(struct host1x *host); /* Return number of sync point supported. */ -int host1x_syncpt_nb_pts(struct host1x *host); +unsigned int host1x_syncpt_nb_pts(struct host1x *host); /* Return number of wait bases supported. */ -int host1x_syncpt_nb_bases(struct host1x *host); +unsigned int host1x_syncpt_nb_bases(struct host1x *host); /* Return number of mlocks supported. */ -int host1x_syncpt_nb_mlocks(struct host1x *host); +unsigned int host1x_syncpt_nb_mlocks(struct host1x *host); /* * Check sync point sanity. If max is larger than min, there have too many |