diff options
author | Ken Adams <kadams@nvidia.com> | 2011-09-26 11:02:09 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:03 -0800 |
commit | c6b3eddba4aa0685a0a0576219622b9a2c0c4d74 (patch) | |
tree | 877daa4b9b921df56c4dd378e342d41078a7fe64 /drivers/video/tegra/nvmap/nvmap_dev.c | |
parent | 39641b246a500ac3ad735325e9b0206264c02931 (diff) |
video: tegra: nvmap: fix checkpatch.pl issues
Change-Id: Ic7fab1575312afd27430b46a50aa6f7a7de0ac4e
Reviewed-on: http://git-master/r/53843
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Rebase-Id: R44abb981f52475b4431975c5d38611e7ca93b59a
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap_dev.c')
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_dev.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_dev.c b/drivers/video/tegra/nvmap/nvmap_dev.c index 256c07fc3f3a..c98c0bb3bea8 100644 --- a/drivers/video/tegra/nvmap/nvmap_dev.c +++ b/drivers/video/tegra/nvmap/nvmap_dev.c @@ -61,7 +61,7 @@ struct nvmap_carveout_node { struct nvmap_heap *carveout; int index; struct list_head clients; - spinlock_t clients_lock; + spinlock_t clients_lock; }; struct nvmap_device { @@ -287,7 +287,7 @@ int nvmap_flush_heap_block(struct nvmap_client *client, if (prot == NVMAP_HANDLE_UNCACHEABLE || prot == NVMAP_HANDLE_WRITE_COMBINE) goto out; - if ( len >= FLUSH_CLEAN_BY_SET_WAY_THRESHOLD ) { + if (len >= FLUSH_CLEAN_BY_SET_WAY_THRESHOLD) { inner_flush_cache_all(); if (prot != NVMAP_HANDLE_INNER_CACHEABLE) outer_flush_range(block->base, block->base + len); @@ -315,7 +315,7 @@ int nvmap_flush_heap_block(struct nvmap_client *client, if (prot != NVMAP_HANDLE_INNER_CACHEABLE) outer_flush_range(block->base, block->base + len); - nvmap_free_pte((client ? client->dev: nvmap_dev), pte); + nvmap_free_pte((client ? client->dev : nvmap_dev), pte); out: wmb(); return 0; @@ -361,7 +361,7 @@ void nvmap_carveout_commit_subtract(struct nvmap_client *client, spin_unlock_irqrestore(&node->clients_lock, flags); } -static struct nvmap_client* get_client_from_carveout_commit( +static struct nvmap_client *get_client_from_carveout_commit( struct nvmap_carveout_node *node, struct nvmap_carveout_commit *commit) { struct nvmap_carveout_commit *first_commit = commit - node->index; @@ -680,7 +680,7 @@ static void destroy_client(struct nvmap_client *client) pins = atomic_read(&ref->pin); if (ref->handle->owner == client) - ref->handle->owner = NULL; + ref->handle->owner = NULL; while (pins--) nvmap_unpin_handles(client, &ref->handle, 1); @@ -1026,7 +1026,7 @@ static int nvmap_debug_allocations_open(struct inode *inode, struct file *file) inode->i_private); } -static struct file_operations debug_allocations_fops = { +static const struct file_operations debug_allocations_fops = { .open = nvmap_debug_allocations_open, .read = seq_read, .llseek = seq_lseek, @@ -1061,7 +1061,7 @@ static int nvmap_debug_clients_open(struct inode *inode, struct file *file) return single_open(file, nvmap_debug_clients_show, inode->i_private); } -static struct file_operations debug_clients_fops = { +static const struct file_operations debug_clients_fops = { .open = nvmap_debug_clients_open, .read = seq_read, .llseek = seq_lseek, |