summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
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/gm20b/hal_gm20b.c
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/gm20b/hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hal_gm20b.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
index 966d33d7..35747f27 100644
--- a/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/hal_gm20b.c
@@ -96,8 +96,7 @@ static struct gpu_ops gm20b_ops = {
96 }, 96 },
97}; 97};
98 98
99static int gm20b_get_litter_value(struct gk20a *g, 99static int gm20b_get_litter_value(struct gk20a *g, int value)
100 enum nvgpu_litter_value value)
101{ 100{
102 int ret = EINVAL; 101 int ret = EINVAL;
103 switch (value) { 102 switch (value) {