[Intel-gfx] [PATCH] drm/i915: Use dev_priv as first argument of for_each_pipe()
Jani Nikula
jani.nikula at linux.intel.com
Mon Aug 18 10:04:59 CEST 2014
On Fri, 15 Aug 2014, Damien Lespiau <damien.lespiau at intel.com> wrote:
> Chris has decided that enough is enough. It's time to fixup dev Vs
> dev_priv and the, oh so awful, INTEL_INFO(). This is a modest
> contribution to the crusade.
> -#define for_each_pipe(p) for ((p) = 0; (p) < INTEL_INFO(dev)->num_pipes; (p)++)
> +#define for_each_pipe(dev, p) for ((p) = 0; (p) < (dev)->info.num_pipes; (p)++)
Naming the first argument "dev" disagrees with the subject.
BR,
Jani.
--
Jani Nikula, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list