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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@xxxxxxxxx>
> Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
-Chris
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux