drm/i915/display: use a macro to initialize subplatforms
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Oct 2024 19:48:35 +0000 (21:48 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 30 Oct 2024 09:15:51 +0000 (11:15 +0200)
commitee51ffd2680c287bb9eaa85fb7a21f4ff0168ae1
tree4f1a3787582ee5c931df65b755cece0857f62f9d
parent1ca4dc47cc182f0359dc4090bb8d0d18b5943639
drm/i915/display: use a macro to initialize subplatforms

Make it easier to change the underlying structures by using a macro
similar to PLATFORM() for initialization.

The subplatform names in debug logs change slightly as they now reflect
the enum rather than manually entered names. For example, RAPTORLAKE_S
rather than RPL-S.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/c4c9d7ea779475513db68e843c970a4dd8f8ac2c.1730144869.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_device.c