Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1195240rbb; Mon, 26 Feb 2024 01:32:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWrFKMtfbkYwvafj13Gsgdmj6SqHe7prXXqHLanfFgnU+Ll5WeO+IIIFZjJ4wQy5b8izvI/xBudxzSoc1u0XbJOlALP+kWQrFTvko4+vg== X-Google-Smtp-Source: AGHT+IH6bIA4mqw8KzM//WQUAmluXVGsys71+OkTKSkrMswhiHkHQiHPZQoH4g8aayON87sL5ya/ X-Received: by 2002:a05:6808:142:b0:3c1:86bf:f9ac with SMTP id h2-20020a056808014200b003c186bff9acmr6478091oie.17.1708939958437; Mon, 26 Feb 2024 01:32:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708939958; cv=pass; d=google.com; s=arc-20160816; b=hsh3yvjqFbmeR2iXIg1dH44obIFl7iwrr+0ne3U04iWnhEY3WNHlNDqyDT682yUf4c Ak/K+jqKXZqIr0FrSbU3DPM2uXighFozCkhLlGoDz/svFHYFzFtiyiN/6kR3+o8pmRKR cKOoEgxrYDeg4Z+JbHfeR9sDsttORFTF/mqXa7MFWe7Ffd9zJN02FjKI5nYP+86UED6u iLxrAfhRcGKkSm19cvczDWrAE1u6taqKU7SY/QxnI3VU4vvCxqDuROZmckBaQiIhc2ow ZDgjOV4U5xdWLszYn3RIfkub2mdKi2P8J/M5BMBOXGYxELK5VL2LCm98kbIvlsf7IQCZ IUlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iwc9kDknZAzyKajXb2vq1Cm2P/QPOwxJq4Z1t9O4ssc=; fh=mgixLepzNGkyB3AoEmVNXq5zUZJ17gVX1HIqk5a+Lr0=; b=boTJTK9XlTallxARJ3XKKLh9RniwiGuDPOVv1qmzc3m7lKauqgWFzcEknMTB24uaFg Er2o1lqge4YbRoeKhExJb+AUP+jeW5j9YKM8MmA9bcxmv68wJecQ9wUsqWEWtk6Mur01 PixytPlqXGN4OEaBltdTK04eKOC/HcYIMopuORe48CjGiqYgTbFah3rFi9qpYM9QRngW qBr5UO47D+CchiVAAXzcgs92Y4bf7860LHrBMa4YtqxKeplLwVf1+iLjBnhjOgukSLWO h3cINTvXDdaTSjTZkwocuH9g/w0XY4hCC/kv9xqaL+p3BsezTfY+2MU9MffdCkEIKtRc zaiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=u1QF3DjL; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-80973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id y13-20020a63ce0d000000b005cfc084b80esi3431278pgf.221.2024.02.26.01.32.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:32:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=u1QF3DjL; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-80973-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80973-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 09BB528398D for ; Mon, 26 Feb 2024 09:32:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4266561686; Mon, 26 Feb 2024 08:51:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="u1QF3DjL" Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E20F604D3; Mon, 26 Feb 2024 08:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708937477; cv=none; b=BargZ2iuZ01ZVSK4YDrVQ/UMlJ7vLAdL+UboVHp8kHJxTJHV10sdHJHvHM4gIfbTzHRQDKaa6CWRQywaFkmVU3WWPF6BWh+nyJcfKS+LdJUK+V8c60XNuyenJ/ID3x/pJxCR+LvNPe6CydHiugB2p7N1b4kPulNmy8i21aK8OkI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708937477; c=relaxed/simple; bh=L3ltQxjIJuw+T2C2bioAGG+AvH8aZvohOch2MvVA5hA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YUskP3ouR8LUhY/n32laXtY3g/KyAspRuTbBpZyV3+1W8PdnEqG/xlZAwKtEXzK+GLFQys9rgs0O72prhZVag3S0tcOtZyOJ5p4Tmza8zaoPseZ809JEUdCIw6jBLpC5eeSd0nTnYsJK6HyTbjqzjQvVcmnIsQxDndnXOCxkMuk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=u1QF3DjL; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 2beb55aed48411eea4ad694c3f9da370-20240226 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=iwc9kDknZAzyKajXb2vq1Cm2P/QPOwxJq4Z1t9O4ssc=; b=u1QF3DjLzz17ehgLXiVDgylbqeXPgOJi34swrTiFQDh53LBqrpBtUEMS0alVFW7DuePMy8tvh83hVIFg0/Wi6adibSrkG9DF+YNnKrDGXhRGpEjW6tA4ubDKzVl86h+A0ArhLbTlQJYxIrVQP8I4Bo2zNCtcQx4MohnJYRW0Bmg=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:5c807543-9fe1-4366-997d-2e781ba17008,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:6f543d0,CLOUDID:0963d280-4f93-4875-95e7-8c66ea833d57,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 2beb55aed48411eea4ad694c3f9da370-20240226 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1414204915; Mon, 26 Feb 2024 16:51:03 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 26 Feb 2024 16:51:02 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 26 Feb 2024 16:51:02 +0800 From: Shawn Sung To: Chun-Kuang Hu , AngeloGioacchino Del Regno CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , , , , , , , Hsiao Chien Sung Subject: [PATCH 11/11] drm/mediatek: Rename "pending_needs_vblank" to "needs_vblank" Date: Mon, 26 Feb 2024 16:50:59 +0800 Message-ID: <20240226085059.26850-12-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240226085059.26850-1-shawn.sung@mediatek.com> References: <20240226085059.26850-1-shawn.sung@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: Hsiao Chien Sung Rename "pending_needs_vblank" to "needs_vblank" to reduce the code size. Signed-off-by: Hsiao Chien Sung --- 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