]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: remove the display platform enum as unnecessary
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Oct 2024 19:48:41 +0000 (21:48 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 30 Oct 2024 09:15:51 +0000 (11:15 +0200)
commite994c6f0b86cb2b2cd2fadc3d8e7fcdb97e4ac1c
treeb7c1b34d4140e7da89e9e4105ff300d4191b76dd
parent3705e3f48e98b107bbfd905217421b9a893f1d3f
drm/i915/display: remove the display platform enum as unnecessary

The display platform enums are not really needed for anything. Remove.

Without the enum, PLATFORM_UNINITIALIZED is also no longer needed for
keeping the first enum 0. Also need to switch from sp->subplatform to
sp->pciidlist as the check for array end.

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