[Intel-gfx] [PATCH] drm/i915: add braces around KHz/MHz macro parameters
Damien Lespiau
damien.lespiau at intel.com
Fri Jan 10 16:17:49 CET 2014
On Fri, Jan 10, 2014 at 05:10:20PM +0200, Jani Nikula wrote:
> It's an accident waiting to happen.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau at intel.com>
--
Damien
> ---
> drivers/gpu/drm/i915/intel_drv.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
> index 46aea6c..33a3ed4 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
> --
> 1.7.10.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list