drm/i915: Assert that device info bitmasks have enough bits
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 16 Jun 2023 14:08:16 +0000 (17:08 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Jun 2023 16:07:41 +0000 (19:07 +0300)
commitce6ea7eeff2db080de4bfd651ae37818a46777cc
treefcbbeaa7e3f9cbd82ecf5f4776af43e32d4f91d8
parent2798e4d1ccd9b3916a8a4088fa24c0338ede9d90
drm/i915: Assert that device info bitmasks have enough bits

Sprinkle in some BUILD_BUG_ON()s to make sure some of
the bitmasks used in the device info have enough bits.

Do we have a better place for this sort of stuff?

v2: Relocate to the new place

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