]> git.baikalelectronics.ru Git - kernel.git/commit
drm/edid: use struct detailed_timing member access in is_rb()
authorJani Nikula <jani.nikula@intel.com>
Mon, 28 Mar 2022 14:34:26 +0000 (17:34 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 29 Mar 2022 11:51:29 +0000 (14:51 +0300)
commit6e35248c634db544f0d0b249810803b23099d3a5
treed72972d6fbb4306696876627185e0be8b930cfe1
parentba091464390b803e0dd437b3a985346430f2f7f5
drm/edid: use struct detailed_timing member access in is_rb()

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/c069669c2fe8f9c3061c7d1a413c75a33ec48813.1648477901.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c