Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/dmc: use step name from runtime info

Now that the step name is in runtime info, switch to using it instead of
intel_step_name().

The ** are only relevant for DMC, so make their use explicit.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://patch.msgid.link/395906e52e76bc726b9dac69a453583cc6e3f6c1.1773663208.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+3 -4
+3 -4
drivers/gpu/drm/i915/display/intel_dmc.c
··· 39 39 #include "intel_dmc.h" 40 40 #include "intel_dmc_regs.h" 41 41 #include "intel_flipq.h" 42 - #include "intel_step.h" 43 42 44 43 /** 45 44 * DOC: DMC Firmware Support ··· 419 420 420 421 static void initialize_stepping_info(struct intel_display *display, struct stepping_info *si) 421 422 { 422 - const char *step_name = intel_step_name(INTEL_DISPLAY_STEP(display)); 423 + const char *step_name = DISPLAY_RUNTIME_INFO(display)->step_name; 423 424 424 - si->stepping = step_name[0]; 425 - si->substepping = step_name[1]; 425 + si->stepping = step_name[0] ?: '*'; 426 + si->substepping = step_name[1] ?: '*'; 426 427 } 427 428 428 429 static void gen9_set_dc_state_debugmask(struct intel_display *display)