From: "Kumar, Mahesh"
As per suggestion from Jani, cleanup the code. Cleanup includes
- Instead of left shifting & check, compare with U32/16_MAX
- Use typecast instead of clamp_t
Signed-off-by: Mahesh Kumar
Cc: Jani Nikula
Reviewed-by: Jani Nikula
Reviewed-by: Maarten Lankhorst
---
drive
From: "Kumar, Mahesh"
As per suggestion from Jani, cleanup the code. Cleanup includes
- Instead of left shifting & check, compare with U32/16_MAX
- Use typecast instead of clamp_t
Signed-off-by: Mahesh Kumar
Cc: Jani Nikula
Reviewed-by: Jani Nikula
---
drivers/gpu/drm/i915/i915_drv.h | 14