From af65ec26976719547212ae29abc10548cf40b7ac Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 31 Jan 2018 15:28:23 -0800 Subject: gpu: nvgpu: Use #define for stalling/nonstalling We use stalling and non-stalling enums in many places where u32 is expected. enum conversion to u32 is considered unsafe, so change the definition to #define with a qualifier U. Change-Id: Ifa5cb9b6a0b0de79f7f8266979fc487d9823bafa Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1683817 Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/mc_gp10b.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'drivers') diff --git a/drivers/gpu/nvgpu/gp10b/mc_gp10b.h b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h index 0eb4dd16..4e93235c 100644 --- a/drivers/gpu/nvgpu/gp10b/mc_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/mc_gp10b.h @@ -24,10 +24,8 @@ #define MC_GP20B_H struct gk20a; -enum MC_INTERRUPT_REGLIST { - NVGPU_MC_INTR_STALLING = 0, - NVGPU_MC_INTR_NONSTALLING, -}; +#define NVGPU_MC_INTR_STALLING 0U +#define NVGPU_MC_INTR_NONSTALLING 1U void mc_gp10b_intr_enable(struct gk20a *g); void mc_gp10b_intr_unit_config(struct gk20a *g, bool enable, -- cgit v1.2.2