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>
This commit is contained in:
seshendra Gadagottu
2016-11-16 09:11:57 -08:00
committed by mobile promotions
parent d29afd2c9e
commit fab87a29bb
4 changed files with 28 additions and 34 deletions

View File

@@ -51,8 +51,7 @@ static struct gpu_ops gk20a_ops = {
},
};
static int gk20a_get_litter_value(struct gk20a *g,
enum nvgpu_litter_value value)
static int gk20a_get_litter_value(struct gk20a *g, int value)
{
int ret = EINVAL;
switch (value) {