]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd301d78d1cfd12bd011568a3ed7fd95fb17837fe
treed06be2068255c19d191d2fab978a40a5d12efc5d
parent9dae3609e1c7104692b7f7c89cc2270ea8e5d8ab
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