drm/edid: use struct detailed_timing member access in gtf2 functions
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Mar 2022 14:34:27 +0000 (17:34 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 29 Mar 2022 11:51:30 +0000 (14:51 +0300)
commitc8a4beba19a56cb45cfc8b68f146eb63a25f7841
tree60635f6fdf43345fca8da9c19589b3ab1aca08a5
parent90fd588f03a6392533c9e46c16dd4e50a12184ae
drm/edid: use struct detailed_timing member access in gtf2 functions

Use struct detailed_timing member access instead of direct offsets to
avoid casting.

Use BUILD_BUG_ON() for sanity check.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/9fe5f5c39039e585fecfffb390297d49262e5fd3.1648477901.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c