]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/bios: abstract child device expected size
authorJani Nikula <jani.nikula@intel.com>
Mon, 26 Feb 2024 17:58:54 +0000 (19:58 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 29 Feb 2024 13:26:43 +0000 (15:26 +0200)
commita1789b3f5dd5f5e9e4ab8f3b28f0802622a02d2d
tree7892005faba3acc795f4b53bb0d952f5995a0a5d
parente396a06eb90a2efcb26321e45bfbf7fc5fe44cfd
drm/i915/bios: abstract child device expected size

Add a function to return the expected child device size. Flip the if
ladder around and use the same versions as in documentation to make it
easier to verify. Return an error for unknown versions. No functional
changes.

v2: Move BUILD_BUG_ON() next to the expected sizes

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240226175854.287871-3-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_bios.c