]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/mediatek: ovl: Remove the color format comment for ovl_fmt_convert()
authorJason-JH.Lin <jason-jh.lin@mediatek.com>
Wed, 9 Oct 2024 03:46:44 +0000 (11:46 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Tue, 22 Oct 2024 12:44:44 +0000 (12:44 +0000)
Since we changed MACROs to be consistent with DRM input color format
naming, the comment for ovl_fmt_conver() is no longer needed.

Fixes: 9f428b95ac89 ("drm/mediatek: Add new color format MACROs in OVL")
Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20241009034646.13143-4-jason-jh.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c

index 0d3a9c5e8d26ecab9d6073984b4fa01fde3e4607..1ccb700858cfc65a33fed8d2e55ec90cd721acd7 100644 (file)
@@ -389,11 +389,6 @@ void mtk_ovl_layer_off(struct device *dev, unsigned int idx,
 static unsigned int ovl_fmt_convert(struct mtk_disp_ovl *ovl, unsigned int fmt,
                                    unsigned int blend_mode)
 {
-       /* The return value in switch "MEM_MODE_INPUT_FORMAT_XXX"
-        * is defined in mediatek HW data sheet.
-        * The alphabet order in XXX is no relation to data
-        * arrangement in memory.
-        */
        switch (fmt) {
        default:
        case DRM_FORMAT_RGB565: