summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2016-11-16 12:11:57 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-11-17 15:07:49 -0500
commitfab87a29bb7ff82828e8de7201115864c0901b9f (patch)
tree1a80a68f561538c8993092d483003513c3c54de5 /drivers/gpu/nvgpu/gm206
parentd29afd2c9e990799b470bb95a97935cf5b5020db (diff)
gpu: nvgpu: use define macros for litter values
Instead of using enum type for litter values, use define macros. This will fix: 1. Resolve ambiguity associated with enum type size. 2. Litter values can be extended easily in future chips. JIRA GV11B-21 Change-Id: Idca5144ea3754820c67831a716bb0aaf2e375eb2 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1254854 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206')
-rw-r--r--drivers/gpu/nvgpu/gm206/hal_gm206.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm206/hal_gm206.c b/drivers/gpu/nvgpu/gm206/hal_gm206.c
index f771c07d..d8793c18 100644
--- a/drivers/gpu/nvgpu/gm206/hal_gm206.c
+++ b/drivers/gpu/nvgpu/gm206/hal_gm206.c
@@ -94,8 +94,7 @@ static struct gpu_ops gm206_ops = {
94 } 94 }
95}; 95};
96 96
97static int gm206_get_litter_value(struct gk20a *g, 97static int gm206_get_litter_value(struct gk20a *g, int value)
98 enum nvgpu_litter_value value)
99{ 98{
100 int ret = -EINVAL; 99 int ret = -EINVAL;
101 100