From: Shawn Sung <shawn.sung@mediatek.com> To: Chun-Kuang Hu <chunkuang.hu@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: "Philipp Zabel" <p.zabel@pengutronix.de>, "David Airlie" <airlied@gmail.com>, "Daniel Vetter" <daniel@ffwll.ch>, "Matthias Brugger" <matthias.bgg@gmail.com>, "Sumit Semwal" <sumit.semwal@linaro.org>, "Christian König" <christian.koenig@amd.com>, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, "Hsiao Chien Sung" <shawn.sung@mediatek.corp-partner.google.com> Subject: [PATCH 11/11] drm/mediatek: Rename "pending_needs_vblank" to "needs_vblank" Date: Mon, 26 Feb 2024 16:50:59 +0800 [thread overview] Message-ID: <20240226085059.26850-12-shawn.sung@mediatek.com> (raw) In-Reply-To: <20240226085059.26850-1-shawn.sung@mediatek.com> From: Hsiao Chien Sung <shawn.sung@mediatek.corp-partner.google.com> Rename "pending_needs_vblank" to "needs_vblank" to reduce the code size. Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.corp-partner.google.com> --- drivers/gpu/drm/mediatek/mtk_crtc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_crtc.c b/drivers/gpu/drm/mediatek/mtk_crtc.c index 7fe234de83a3..a1fb6c67681d 100644 --- a/drivers/gpu/drm/mediatek/mtk_crtc.c +++ b/drivers/gpu/drm/mediatek/mtk_crtc.c @@ -42,7 +42,7 @@ struct mtk_crtc { struct drm_crtc base; bool enabled; - bool pending_needs_vblank; + bool needs_vblank; struct drm_pending_vblank_event *event; struct drm_plane *planes; @@ -105,9 +105,9 @@ static void mtk_crtc_finish_page_flip(struct mtk_crtc *mtk_crtc) static void mtk_drm_finish_page_flip(struct mtk_crtc *mtk_crtc) { drm_crtc_handle_vblank(&mtk_crtc->base); - if (!mtk_crtc->config_updating && mtk_crtc->pending_needs_vblank) { + if (!mtk_crtc->config_updating && mtk_crtc->needs_vblank) { mtk_crtc_finish_page_flip(mtk_crtc); - mtk_crtc->pending_needs_vblank = false; + mtk_crtc->needs_vblank = false; } } @@ -571,7 +571,7 @@ static void mtk_crtc_update_config(struct mtk_crtc *mtk_crtc, bool needs_vblank) mutex_lock(&mtk_crtc->hw_lock); mtk_crtc->config_updating = true; if (needs_vblank) - mtk_crtc->pending_needs_vblank = true; + mtk_crtc->needs_vblank = true; for (i = 0; i < mtk_crtc->layer_nr; i++) { struct drm_plane *plane = &mtk_crtc->planes[i]; -- 2.18.0
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Sung <shawn.sung@mediatek.com> To: Chun-Kuang Hu <chunkuang.hu@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Cc: "Philipp Zabel" <p.zabel@pengutronix.de>, "David Airlie" <airlied@gmail.com>, "Daniel Vetter" <daniel@ffwll.ch>, "Matthias Brugger" <matthias.bgg@gmail.com>, "Sumit Semwal" <sumit.semwal@linaro.org>, "Christian König" <christian.koenig@amd.com>, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, "Hsiao Chien Sung" <shawn.sung@mediatek.corp-partner.google.com> Subject: [PATCH 11/11] drm/mediatek: Rename "pending_needs_vblank" to "needs_vblank" Date: Mon, 26 Feb 2024 16:50:59 +0800 [thread overview] Message-ID: <20240226085059.26850-12-shawn.sung@mediatek.com> (raw) In-Reply-To: <20240226085059.26850-1-shawn.sung@mediatek.com> From: Hsiao Chien Sung <shawn.sung@mediatek.corp-partner.google.com> Rename "pending_needs_vblank" to "needs_vblank" to reduce the code size. Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.corp-partner.google.com> --- drivers/gpu/drm/mediatek/mtk_crtc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_crtc.c b/drivers/gpu/drm/mediatek/mtk_crtc.c index 7fe234de83a3..a1fb6c67681d 100644 --- a/drivers/gpu/drm/mediatek/mtk_crtc.c +++ b/drivers/gpu/drm/mediatek/mtk_crtc.c @@ -42,7 +42,7 @@ struct mtk_crtc { struct drm_crtc base; bool enabled; - bool pending_needs_vblank; + bool needs_vblank; struct drm_pending_vblank_event *event; struct drm_plane *planes; @@ -105,9 +105,9 @@ static void mtk_crtc_finish_page_flip(struct mtk_crtc *mtk_crtc) static void mtk_drm_finish_page_flip(struct mtk_crtc *mtk_crtc) { drm_crtc_handle_vblank(&mtk_crtc->base); - if (!mtk_crtc->config_updating && mtk_crtc->pending_needs_vblank) { + if (!mtk_crtc->config_updating && mtk_crtc->needs_vblank) { mtk_crtc_finish_page_flip(mtk_crtc); - mtk_crtc->pending_needs_vblank = false; + mtk_crtc->needs_vblank = false; } } @@ -571,7 +571,7 @@ static void mtk_crtc_update_config(struct mtk_crtc *mtk_crtc, bool needs_vblank) mutex_lock(&mtk_crtc->hw_lock); mtk_crtc->config_updating = true; if (needs_vblank) - mtk_crtc->pending_needs_vblank = true; + mtk_crtc->needs_vblank = true; for (i = 0; i < mtk_crtc->layer_nr; i++) { struct drm_plane *plane = &mtk_crtc->planes[i]; -- 2.18.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-02-26 8:51 UTC|newest] Thread overview: 85+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-02-26 8:50 [PATCH 00/11] Rename mtk_drm_* to mtk_* Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 8:50 ` [PATCH 01/11] drm/mediatek: Rename "mtk_drm_crtc" to "mtk_crtc" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 3:26 ` CK Hu (胡俊光) 2024-03-14 3:26 ` CK Hu (胡俊光) 2024-03-14 3:26 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 02/11] drm/mediatek: Rename "mtk_drm_ddp_comp" to "mtk_ddp_comp" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 5:14 ` CK Hu (胡俊光) 2024-03-14 5:14 ` CK Hu (胡俊光) 2024-03-14 5:14 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 03/11] drm/mediatek: Rename "mtk_drm_plane" to "mtk_plane" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 5:20 ` CK Hu (胡俊光) 2024-03-14 5:20 ` CK Hu (胡俊光) 2024-03-14 5:20 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 04/11] drm/mediatek: Rename "mtk_drm_gem" to "mtk_gem" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 5:49 ` CK Hu (胡俊光) 2024-03-14 5:49 ` CK Hu (胡俊光) 2024-03-14 5:49 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 05/11] drm/mediatek: Rename "mtk_drm_hdmi" to "mtk_hdmi" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 6:24 ` CK Hu (胡俊光) 2024-03-14 6:24 ` CK Hu (胡俊光) 2024-03-14 6:24 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 06/11] drm/mediatek: Rename files "mtk_drm_crtc.*" to "mtk_crtc.*" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 6:40 ` CK Hu (胡俊光) 2024-03-14 6:40 ` CK Hu (胡俊光) 2024-03-14 6:40 ` CK Hu (胡俊光) 2024-03-14 6:50 ` CK Hu (胡俊光) 2024-03-14 6:50 ` CK Hu (胡俊光) 2024-03-14 6:50 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 07/11] drm/mediatek: Rename files "mtk_drm_ddp_comp.*" to "mtk_ddp_comp.*" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 6:54 ` CK Hu (胡俊光) 2024-03-14 6:54 ` CK Hu (胡俊光) 2024-03-14 6:54 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 08/11] drm/mediatek: Rename files "mtk_drm_plane.*" to "mtk_plane.*" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 6:57 ` CK Hu (胡俊光) 2024-03-14 6:57 ` CK Hu (胡俊光) 2024-03-14 6:57 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 09/11] drm/mediatek: Rename files "mtk_drm_gem.*" to "mtk_gem.*" Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 7:03 ` CK Hu (胡俊光) 2024-03-14 7:03 ` CK Hu (胡俊光) 2024-03-14 7:03 ` CK Hu (胡俊光) 2024-02-26 8:50 ` [PATCH 10/11] drm/mediatek: Rename mtk_ddp_comp functions Shawn Sung 2024-02-26 8:50 ` Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-03-14 7:09 ` CK Hu (胡俊光) 2024-03-14 7:09 ` CK Hu (胡俊光) 2024-03-14 7:09 ` CK Hu (胡俊光) 2024-02-26 8:50 ` Shawn Sung [this message] 2024-02-26 8:50 ` [PATCH 11/11] drm/mediatek: Rename "pending_needs_vblank" to "needs_vblank" Shawn Sung 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-26 12:39 ` AngeloGioacchino Del Regno 2024-02-29 2:35 ` Shawn Sung (宋孝謙) 2024-02-29 2:35 ` Shawn Sung (宋孝謙) 2024-02-29 2:35 ` Shawn Sung (宋孝謙) 2024-03-14 7:26 ` CK Hu (胡俊光) 2024-03-14 7:26 ` CK Hu (胡俊光) 2024-03-14 7:26 ` CK Hu (胡俊光)
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240226085059.26850-12-shawn.sung@mediatek.com \ --to=shawn.sung@mediatek.com \ --cc=airlied@gmail.com \ --cc=angelogioacchino.delregno@collabora.com \ --cc=christian.koenig@amd.com \ --cc=chunkuang.hu@kernel.org \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=linaro-mm-sig@lists.linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-media@vger.kernel.org \ --cc=linux-mediatek@lists.infradead.org \ --cc=matthias.bgg@gmail.com \ --cc=p.zabel@pengutronix.de \ --cc=shawn.sung@mediatek.corp-partner.google.com \ --cc=sumit.semwal@linaro.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.