drm/fourcc: Add is_yuv field to drm_format_info to denote if the format is yuv
authorAyan Kumar Halder <ayan.halder@arm.com>
Tue, 17 Jul 2018 17:13:42 +0000 (18:13 +0100)
committerAyan Kumar Halder <ayan.halder@arm.com>
Wed, 18 Jul 2018 15:56:45 +0000 (16:56 +0100)
commitce2d54619a10780a0d354e10d4c83ae4fad46f41
treed06be2068255c19d191d2fab978a40a5d12efc5d
parent108019a7e6a34df91246365066bea7cf6faf6b02
drm/fourcc: Add is_yuv field to drm_format_info to denote if the format is yuv

A lot of drivers duplicate the function to check if a format is yuv or not.
If we add a field (to denote whether the format is yuv or not) in the
drm_format_info table, all the drivers can use this field and it will
prevent duplication of similar logic.

Signed-off-by: Ayan Kumar halder <ayan.halder@arm.com>
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1531847626-22248-1-git-send-email-ayan.halder@arm.com
drivers/gpu/drm/drm_fourcc.c
include/drm/drm_fourcc.h