From patchwork Thu Jul 27 21:51:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 13330812 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32E27EB64DD for ; Thu, 27 Jul 2023 21:59:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92BD910E61A; Thu, 27 Jul 2023 21:59:03 +0000 (UTC) Received: from qs51p00im-qukt01072301.me.com (qs51p00im-qukt01072301.me.com [17.57.155.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9261710E61A for ; Thu, 27 Jul 2023 21:59:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1690494758; bh=YktwkpXyaGBIT8GsziofZlNMbhT2j8LgV+O0AEQuBJU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=QUK2MinujpZIVzM9jqSwTClsGYBGoJnXMLPmEYJTXNIYv1CKGNPvScMaW/CUV7u5H qnECqzPJpsQrb0VfPu+GNHedd8umWgLVfuTmslj8WGnXSQK4Zsxd3hH45klyQVJdj3 GA5JaUUguVIKc9IN1qxSVLuTWsS6pnYugh/Ua9NnbR1g5fMxnFpL3ebagpLagdFRr6 zCsGaMHBY2B/Q1JlruyDnk7E37+aJouBeSaYLebGveEHiFbeLPvRGXLZP3PL4e2Anx UEXBV+EjJLp+a5XAUoMJOj1plbqxEd9zKO4tr65rjfVUaBSxUuasSKHfzKiNk0h20h K8UY3cjgEBrmA== Received: from localhost (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01072301.me.com (Postfix) with ESMTPSA id 8353F254016F; Thu, 27 Jul 2023 21:52:37 +0000 (UTC) From: Alain Volmat To: Alain Volmat , David Airlie , Daniel Vetter Subject: [PATCH 06/14] drm/sti: remove VTG_SYNC_ID_HDMI from sti_vtg.h Date: Thu, 27 Jul 2023 21:51:30 +0000 Message-Id: <20230727215141.53910-7-avolmat@me.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230727215141.53910-1-avolmat@me.com> References: <20230727215141.53910-1-avolmat@me.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: mB9QGKLmq2zplK26TClZnVryBqDr75Nm X-Proofpoint-GUID: mB9QGKLmq2zplK26TClZnVryBqDr75Nm X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E138=2C18=2E0?= =?utf-8?q?=2E790=2C17=2E11=2E62=2E513=2E0000000_definitions=3D2022-01-12=5F?= =?utf-8?q?02=3A2020-02-14=5F02=2C2022-01-12=5F02=2C2021-12-02=5F01_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxlogscore=923 suspectscore=0 mlxscore=0 clxscore=1015 malwarescore=0 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2307270199 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alain Volmat Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Since the synchro signal used for hdmi output and coming from the VTG differs between the stih407 and stih418 platforms, we cannot rely anymore on hardcoded value and involve drivers use compatible to figure out the value. The macro VTG_SYNC_ID_HDMI can thus be removed. Signed-off-by: Alain Volmat --- drivers/gpu/drm/sti/sti_vtg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/sti/sti_vtg.h b/drivers/gpu/drm/sti/sti_vtg.h index 46faf141b2d9..bd0437bd1c8d 100644 --- a/drivers/gpu/drm/sti/sti_vtg.h +++ b/drivers/gpu/drm/sti/sti_vtg.h @@ -10,7 +10,6 @@ #define VTG_TOP_FIELD_EVENT 1 #define VTG_BOTTOM_FIELD_EVENT 2 -#define VTG_SYNC_ID_HDMI 1 #define VTG_SYNC_ID_HDDCS 2 #define VTG_SYNC_ID_HDF 3 #define VTG_SYNC_ID_DVO 4