Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1194707rbb; Mon, 26 Feb 2024 01:31:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXRb8Ezyu7V0GnEv/Sbr9pQgmHxWIU1ABmRmvJf//l64HyP8e6atH1je4Lj4H6MiGhE5cb/jn2+wvM8dcSOZXQUr6IEt4y/TccU9aQhjA== X-Google-Smtp-Source: AGHT+IHnI3VFx6oEcbs808ixJXBWXn2tgd8dF91GLYnDvzwkUspAjSgdSRsDtrLCcmSop37xsWY1 X-Received: by 2002:aa7:d9c8:0:b0:565:ebf3:e28a with SMTP id v8-20020aa7d9c8000000b00565ebf3e28amr1590866eds.31.1708939876869; Mon, 26 Feb 2024 01:31:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708939876; cv=pass; d=google.com; s=arc-20160816; b=CABPjDvcecTHAlEE6hmo8yEHhXYwM/FLUIkpZODPRumNU6XuCU26wc0DLWtbuCvlCH r4D15Ulj8+8cCOh2IozfHsaLS1x8ZrDOtMiJ6cDxYz+klaFdxVbKT5ed+a1SI/elM/lz SOLiZwi0azjyrNMgS59JjEKl/caCsO8MOd6ujKExYuezVRzh2Phk2Cj+XnqrqqAOsph0 BwHzP23ZbmIxLW/c9u6berAByh9SabUByu9zz7bXZCvIg/3zLVz/N7q7m4DyYuvLzdJH CoCL22QE4wUCTaIjhghecRZYqt4UKQO0RTm29vTazS6x1AKEatZCwJ1CxLa2VZSAj1OO liag== 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=0a2yQ3VluUMW3p2sCIDS/3+d6/bnA7zvic6sqXPj6QU=; fh=mgixLepzNGkyB3AoEmVNXq5zUZJ17gVX1HIqk5a+Lr0=; b=iP2gYjRFPRlKQUdS5lpcuuHeGfuUtY7Qe7jA64obJ8Jg5i+Pk6saG5Ngec/3OWy0N5 1B345/E5pKIs3ofUYKwqy9C4LmWcDDvehp2wdNcLT8Kgx4GMtKsBeTxo4lPZxyKV7P6+ JpNwP287+augZ13xQv6iVa3SmXYa10dgVFh0Ft3AfF8EN3wu4Md+CORx/WCrhskr3Jl/ 6s41W5VRaYQHroNeMR9GmARIAqYkylP7LWX/r+6+yu0E73Kv2P7iWjSLy2+IXrtjGsLt /A0fijBEQabaRzv1h2uYQ2UoNJMoIADB4QJoMAuE+uy0sxRhdcPU2eiUlqzGo9ylScA0 WMaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NhVahdQO; 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-80968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80968-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q15-20020aa7d44f000000b0056585c8540dsi1969433edr.597.2024.02.26.01.31.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:31:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=NhVahdQO; 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-80968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80968-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9F47B1F2526A for ; Mon, 26 Feb 2024 09:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 97B81605DB; Mon, 26 Feb 2024 08:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="NhVahdQO" 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 61C4B6026F; Mon, 26 Feb 2024 08:51:13 +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=1708937475; cv=none; b=d7nueEYbaEtKphKBTm+ztYqJdUgCfnpOw53LRB51MQe6WLGWjDr8bRwiCc/NZbR9PBgdB7EwdtYMTXJ0oaB+aV8z6TXEZQXJbivW32Qu93QVJn/Bj6lkJr9L0ywDPhItTDdmipiyiSmRLGqiZqZtAvoGQakLC8BLWybA9/HmBKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708937475; c=relaxed/simple; bh=qmCnikV9Ac95nT9a+ZeWwFZq924Py7zqiMq/shG1NCg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mGNtKyLAGd61POjnVcqgibfw71lUUUfcKfqa4geAAYY+NmqLxwo4cKDFRdMkq6hnov/rbhTa7RbZe5ZTPUsXGOAlhOo9ail/GsY5Yj4lOQMDE0yPDOf3AQ6PY5/0dpoFjMfamAQ0RYXRPo0MkPkcO3BjI/MWTWLpnDICv0AnGzw= 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=NhVahdQO; 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: 2b7459ccd48411eea4ad694c3f9da370-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=0a2yQ3VluUMW3p2sCIDS/3+d6/bnA7zvic6sqXPj6QU=; b=NhVahdQOZZ3UYAqu/rbkmVIZXPseDC+hvzru7sh+tpd0VSTkD/owwbLAxfd2dv/e2AB4bcpqh5wz9R4RvOYTtn8p3mbNBGkiQ/K79rnZMNEAHj+RKd5xVuO1pY3VDm4n4LKWORczih7H76qnO33S9j3CFj5egkpTiZBA6UJwx7E=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:0dc8743d-ec56-42e8-b8be-c2eece75357c,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:0556b98f-e2c0-40b0-a8fe-7c7e47299109,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:11|1,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,TF_CID_SPAM_ULN X-UUID: 2b7459ccd48411eea4ad694c3f9da370-20240226 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1917233697; Mon, 26 Feb 2024 16:51:02 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) 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:01 +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:00 +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 03/11] drm/mediatek: Rename "mtk_drm_plane" to "mtk_plane" Date: Mon, 26 Feb 2024 16:50:51 +0800 Message-ID: <20240226085059.26850-4-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-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--5.066400-8.000000 X-TMASE-MatchedRID: TsrpJoyR88e4pD9RIlWSGjl/LoO+pjoA1cuIRwt/4Miaecho1pk4scbK +pu0ZYwRkKuaCBhTl1ZEzxsFM1euZm94Ipa1otxo4pdq9sdj8LUK3iJpXUOQQ+nZDXpMs2JZNT0 2hqjbFakI5IPWxD4Kh9wezITcev2HHxPMjOKY7A8LbigRnpKlKSPzRlrdFGDw71vY0NFosmGP2Y IQaqq6tYtYcDYhM5aiaT9USnjwmADBXSLukJEfgQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.066400-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: E3982EFEFA126FD5297DADA138F1F72675F733FA91B515562CC464D52ADD93112000:8 X-MTK: N From: Hsiao Chien Sung Rename all "mtk_drm_plane" to "mtk_plane": - To align the naming rule - To reduce the code size Signed-off-by: Hsiao Chien Sung --- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 6 +++--- drivers/gpu/drm/mediatek/mtk_drm_plane.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.c b/drivers/gpu/drm/mediatek/mtk_drm_plane.c index cbdb70677d30..43137c46fc14 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.c @@ -93,8 +93,8 @@ static bool mtk_plane_format_mod_supported(struct drm_plane *plane, return true; } -static void mtk_drm_plane_destroy_state(struct drm_plane *plane, - struct drm_plane_state *state) +static void mtk_plane_destroy_state(struct drm_plane *plane, + struct drm_plane_state *state) { __drm_atomic_helper_plane_destroy_state(state); kfree(to_mtk_plane_state(state)); @@ -241,7 +241,7 @@ static const struct drm_plane_funcs mtk_plane_funcs = { .destroy = drm_plane_cleanup, .reset = mtk_plane_reset, .atomic_duplicate_state = mtk_plane_duplicate_state, - .atomic_destroy_state = mtk_drm_plane_destroy_state, + .atomic_destroy_state = mtk_plane_destroy_state, .format_mod_supported = mtk_plane_format_mod_supported, }; diff --git a/drivers/gpu/drm/mediatek/mtk_drm_plane.h b/drivers/gpu/drm/mediatek/mtk_drm_plane.h index 99aff7da0831..231bb7aac947 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_plane.h +++ b/drivers/gpu/drm/mediatek/mtk_drm_plane.h @@ -4,8 +4,8 @@ * Author: CK Hu */ -#ifndef _MTK_DRM_PLANE_H_ -#define _MTK_DRM_PLANE_H_ +#ifndef _MTK_PLANE_H_ +#define _MTK_PLANE_H_ #include #include -- 2.18.0