[Intel-gfx] [PATCH v3 2/5] drm/i915: Introduce custom variant of module_param_named macro

Chris Wilson chris at chris-wilson.co.uk
Fri Sep 15 10:00:41 UTC 2017


Quoting Michal Wajdeczko (2017-09-14 16:08:02)
> As we now use same name for public module param and its local
> representation we can simplify param definition macro.
> 
> Changes done with Coccinelle:
> 
> @@
> declarer name module_param_named;
> declarer name module_param_named_unsafe;
> declarer name i915_param_named;
> declarer name i915_param_named_unsafe;
> identifier n;
> @@
> 
> (
> -module_param_named(n, i915.n,
> +i915_module_param_named(n,
>   ...);
> |
> -module_param_named_unsafe(n, i915.n,
> +i915_module_param_named_unsafe(n,
>  ...);
> )
> 
> Suggested-by: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris


More information about the Intel-gfx mailing list