diff options
author | Jani Nikula <jani.nikula@intel.com> | 2014-01-10 10:10:20 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-01-10 12:03:59 -0500 |
commit | 49938ac4592fee8a1405e379cf6fc57aedbec798 (patch) | |
tree | 46b3b9816dd1e205b0ed6291334445eeb33a59d1 /drivers/gpu/drm/i915/intel_drv.h | |
parent | 3f2dc5ac05714711fc14f2bf0ee5e42d5c08c581 (diff) |
drm/i915: add braces around KHz/MHz macro parameters
It's an accident waiting to happen.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
65 | #define wait_for_atomic_us(COND, US) _wait_for((COND), \ | 65 | #define wait_for_atomic_us(COND, US) _wait_for((COND), \ |
66 | DIV_ROUND_UP((US), 1000), 0) | 66 | DIV_ROUND_UP((US), 1000), 0) |
67 | 67 | ||
68 | #define KHz(x) (1000*x) | 68 | #define KHz(x) (1000 * (x)) |
69 | #define MHz(x) KHz(1000*x) | 69 | #define MHz(x) KHz(1000 * (x)) |
70 | 70 | ||
71 | /* | 71 | /* |
72 | * Display related stuff | 72 | * Display related stuff |