diff options
author | Michal Wajdeczko <[email protected]> | 2017-09-25 10:50:07 +0000 |
---|---|---|
committer | Joonas Lahtinen <[email protected]> | 2017-09-26 11:22:23 +0300 |
commit | 7075cb855d493487805ecf113874c04218d16014 (patch) | |
tree | 1da7f4dbe1f5b47101b754e522bff959664fb6f1 /lib/mpi/mpi-cmp.c | |
parent | 54fea2b974a076799e427e50644de7c6ca662be5 (diff) |
drm/i915: Extend I915_PARAMS_FOR_EACH with default member value
By combining default value into helper macro we can initialize
modparams struct in the same automatic way as it was declared.
This will initialize members in the same order as declared
and additionally will disallow declaring new member without
proper default value for it.
v2: make MEMBER macro more robust (Joonas)
Signed-off-by: Michal Wajdeczko <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Acked-by: Jani Nikula <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Joonas Lahtinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions