Received: by 2002:a05:7208:70d5:b0:7f:5597:fa5c with SMTP id q21csp896178rba; Thu, 21 Mar 2024 18:31:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfRAOKqkv1UP/FvbsRosFHOHEc6xQeAg+sNDUkoesFxsnFlYmhSS2BUYpjS4sIjnyCMk1aLFDUcsPYhrkri72vDSiKKeJHQmV8bCp12A== X-Google-Smtp-Source: AGHT+IGqsAzeUDeH1bNigWPRqsbfuTDh/oYGTATAVA1b6xMUPC6bTWU1Mw+bWqnOsSov39tXMhlq X-Received: by 2002:a05:620a:1a91:b0:788:18b8:eb94 with SMTP id bl17-20020a05620a1a9100b0078818b8eb94mr1164716qkb.14.1711071066106; Thu, 21 Mar 2024 18:31:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711071066; cv=pass; d=google.com; s=arc-20160816; b=cKfvEMlM37GCKZy6F4rx4eXpAdS6j76C/OJJvm92VYKKihDJI+BK1u3iyD0sL8mSGo AwvFUwBfw0JoNj0+GQiApc91n2IafYgIHmp3zzJPbjHBB0Hf6rTw4r1gK9XvGeZOD9Od NrKpz5QTEojsT3UwEm4KWczc01W+5tX3pRZ7K+EWwOaWHkkR8i4nHxSoK/Z2BnZKZvtq QQsEMarZWtj7Y6jAWg0XZ/hS8TkD7OcByhO/ZkQf3Gbr11m7Z9wIKrytbcaeC+4+Z7FG Qq2mPuWr5jPD1EWBUtiAlwsAWWGK4HyKSvWjyAbIuLKE6TlKNO5Y+o6C6VpWwnMGufOe 9q1g== 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=CGihiINE4jr8gwW1duxiJk5+r7phZbsvGQSK+VEZn4I=; fh=mgixLepzNGkyB3AoEmVNXq5zUZJ17gVX1HIqk5a+Lr0=; b=jHxwhpSIFxNHael+dB6JNGCOk8WtQzdJybnVJIHGyr70T7uT7ngRFRZzURFfHMT1Ly 7tCYqNAJHynGs5+lcxzWKUz0pEsB6HhVKo4l77wmphWeTeD+R8DJZmgnTMYCYiSOdwvs oK1bIKPdj4YeoC4GG8p7JT3pB39Tuxcpi+90VapyEoNnZYPpLB3pVksjdZoY5SZGXpBJ JtkSXpAlbLlClHBW8UBPXOsG/7spFVP5v/NwX+jPCH/PfYqSqySVvRB2VK5KVnE554zm /CjXVP8T2TnU8mDJc/HuDLoaadaTRBZbxSDQtCkdJFBGyhytxgVKmVoY6bqaYrJXdTV4 x88A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EKpPF2GL; 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-110851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m15-20020a05620a220f00b00789ea463f58si945045qkh.191.2024.03.21.18.31.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 18:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=EKpPF2GL; 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-110851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110851-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BD1E21C22BA5 for ; Fri, 22 Mar 2024 01:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1451C6AB; Fri, 22 Mar 2024 01:28:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="EKpPF2GL" 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 E1E1015BB; Fri, 22 Mar 2024 01:28:25 +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=1711070908; cv=none; b=gYfjeHRSOwd4e6n5Ya+6a4U/PgVXtplSvwzvf4dfFcH3PIJ6uozdCodYUXiDWwTZDBOXeolB81H7MBkUKOicw/eiXIuuvy56GnG0Uly+oKeZXcNRYWvBr9ozfDUyoOBY/aMGx5kcfhOobWNTKC0jbK0SP5lvVF5D3iWs4OXlnn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711070908; c=relaxed/simple; bh=4BCg9SEa8wp69KQP06eKB8LhzsN2idhIobceVRiqrfQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CSe38/ltYn5DSmKn5nw536NMdak6MIR7X2oYOilLBRMMcn01PeTJUABHCWKCeSU/kAbDvkyQn02J6r8/rmC1x1NQ8MnHAtBUEPlLZiUW9zczTthQthnudZnHw9uIVjUN6ztgty7M+mrjEm2IfFhVF9paTnI11NkGecjwgJnGiWM= 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=EKpPF2GL; 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: 720b19d2e7eb11ee935d6952f98a51a9-20240322 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=CGihiINE4jr8gwW1duxiJk5+r7phZbsvGQSK+VEZn4I=; b=EKpPF2GL7W+Wfs8wiFRRka0SYuq9aARa22ppsNhW9L4viAed0KT9Kg2FB77FBWiqlOIg25CZub/HQC0SuEe37oWvd0u1QH4BreqWMnRLvxc5VKcW6vIUEiwLcIPHu89MfF5nkzZ9JZnE9vBCkArZ82e8ye0gx2wKh5zW+uT5mFs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:a6262f3e-9322-4122-a47d-d9fc8be86aa0,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:25a82e00-c26b-4159-a099-3b9d0558e447,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: 720b19d2e7eb11ee935d6952f98a51a9-20240322 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1366670595; Fri, 22 Mar 2024 09:28:11 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 22 Mar 2024 09:28:09 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 22 Mar 2024 09:28:09 +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 v4 03/14] drm/mediatek: Rename "mtk_drm_plane" to "mtk_plane" Date: Fri, 22 Mar 2024 09:27:57 +0800 Message-ID: <20240322012808.26234-4-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240322012808.26234-1-shawn.sung@mediatek.com> References: <20240322012808.26234-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 all "mtk_drm_plane" to "mtk_plane": - To align the naming rule - To reduce the code size Reviewed-by: AngeloGiaocchino Del Regno Reviewed-by: CK Hu 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 cbdb70677d305..43137c46fc148 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 99aff7da0831d..231bb7aac9473 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