From fab87a29bb7ff82828e8de7201115864c0901b9f Mon Sep 17 00:00:00 2001 From: seshendra Gadagottu Date: Wed, 16 Nov 2016 09:11:57 -0800 Subject: 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 Reviewed-on: http://git-master/r/1254854 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gm206/hal_gm206.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gm206') 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 = { } }; -static int gm206_get_litter_value(struct gk20a *g, - enum nvgpu_litter_value value) +static int gm206_get_litter_value(struct gk20a *g, int value) { int ret = -EINVAL; -- cgit v1.2.2