From: Jani Nikula Date: Fri, 10 Jan 2014 15:10:20 +0000 (+0200) Subject: drm/i915: add braces around KHz/MHz macro parameters X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=49938ac4592fee8a1405e379cf6fc57aedbec798;p=linux-beck.git drm/i915: add braces around KHz/MHz macro parameters It's an accident waiting to happen. Signed-off-by: Jani Nikula Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 0299741d975b..4cbf49051b9c 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -65,8 +65,8 @@ #define wait_for_atomic_us(COND, US) _wait_for((COND), \ DIV_ROUND_UP((US), 1000), 0) -#define KHz(x) (1000*x) -#define MHz(x) KHz(1000*x) +#define KHz(x) (1000 * (x)) +#define MHz(x) KHz(1000 * (x)) /* * Display related stuff