Instead of spreading multiple conditionals across the uC code to find out current mode of uC operation, start using predefined set of function pointers that reflect that mode. Michal Wajdeczko (4): drm/i915/uc: Add ops to intel_uc drm/i915/uc: Add init_fw/fini_fw to to intel_uc_ops drm/i915/uc: Add init/fini to to intel_uc_ops drm/i915/uc: Add sanitize to to intel_uc_ops drivers/gpu/drm/i915/gt/uc/intel_uc.c | 83 ++++++++++++++++++--------- drivers/gpu/drm/i915/gt/uc/intel_uc.h | 64 ++++++++++++++++++--- 2 files changed, 113 insertions(+), 34 deletions(-) -- 2.19.2 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx