提交 54fea2b9 编写于 作者: M Michal Wajdeczko 提交者: Joonas Lahtinen

drm/i915: Make I915_PARAMS_FOR_EACH macro more flexible

We should not add trailing ; after each member to allow other
than statements-style uses of this helper macro.
While here s/func/param for clarity.
Signed-off-by: NMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Acked-by: NJani Nikula <jani.nikula@intel.com>
Signed-off-by: NJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170925105008.46060-1-michal.wajdeczko@intel.com
上级 aec0246f
...@@ -27,50 +27,50 @@ ...@@ -27,50 +27,50 @@
#include <linux/cache.h> /* for __read_mostly */ #include <linux/cache.h> /* for __read_mostly */
#define I915_PARAMS_FOR_EACH(func) \ #define I915_PARAMS_FOR_EACH(param) \
func(char *, vbt_firmware); \ param(char *, vbt_firmware) \
func(int, modeset); \ param(int, modeset) \
func(int, panel_ignore_lid); \ param(int, panel_ignore_lid) \
func(int, semaphores); \ param(int, semaphores) \
func(int, lvds_channel_mode); \ param(int, lvds_channel_mode) \
func(int, panel_use_ssc); \ param(int, panel_use_ssc) \
func(int, vbt_sdvo_panel_type); \ param(int, vbt_sdvo_panel_type) \
func(int, enable_rc6); \ param(int, enable_rc6) \
func(int, enable_dc); \ param(int, enable_dc) \
func(int, enable_fbc); \ param(int, enable_fbc) \
func(int, enable_ppgtt); \ param(int, enable_ppgtt) \
func(int, enable_execlists); \ param(int, enable_execlists) \
func(int, enable_psr); \ param(int, enable_psr) \
func(int, disable_power_well); \ param(int, disable_power_well) \
func(int, enable_ips); \ param(int, enable_ips) \
func(int, invert_brightness); \ param(int, invert_brightness) \
func(int, enable_guc_loading); \ param(int, enable_guc_loading) \
func(int, enable_guc_submission); \ param(int, enable_guc_submission) \
func(int, guc_log_level); \ param(int, guc_log_level) \
func(char *, guc_firmware_path); \ param(char *, guc_firmware_path) \
func(char *, huc_firmware_path); \ param(char *, huc_firmware_path) \
func(int, use_mmio_flip); \ param(int, use_mmio_flip) \
func(int, mmio_debug); \ param(int, mmio_debug) \
func(int, edp_vswing); \ param(int, edp_vswing) \
func(int, reset); \ param(int, reset) \
func(unsigned int, inject_load_failure); \ param(unsigned int, inject_load_failure) \
/* leave bools at the end to not create holes */ \ /* leave bools at the end to not create holes */ \
func(bool, alpha_support); \ param(bool, alpha_support) \
func(bool, enable_cmd_parser); \ param(bool, enable_cmd_parser) \
func(bool, enable_hangcheck); \ param(bool, enable_hangcheck) \
func(bool, fastboot); \ param(bool, fastboot) \
func(bool, prefault_disable); \ param(bool, prefault_disable) \
func(bool, load_detect_test); \ param(bool, load_detect_test) \
func(bool, force_reset_modeset_test); \ param(bool, force_reset_modeset_test) \
func(bool, error_capture); \ param(bool, error_capture) \
func(bool, disable_display); \ param(bool, disable_display) \
func(bool, verbose_state_checks); \ param(bool, verbose_state_checks) \
func(bool, nuclear_pageflip); \ param(bool, nuclear_pageflip) \
func(bool, enable_dp_mst); \ param(bool, enable_dp_mst) \
func(bool, enable_dpcd_backlight); \ param(bool, enable_dpcd_backlight) \
func(bool, enable_gvt) param(bool, enable_gvt)
#define MEMBER(T, member) T member #define MEMBER(T, member) T member;
struct i915_params { struct i915_params {
I915_PARAMS_FOR_EACH(MEMBER); I915_PARAMS_FOR_EACH(MEMBER);
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册