From patchwork Sun Mar 31 20:29:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13612316 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 05CA4CD128A for ; Sun, 31 Mar 2024 21:30:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hhdeGI5RuLXJkLwbka76LSwwK6CURMJHyeqYXnVTsZY=; b=NZomCvIiOxXKRM y56PiSikmO638TKxiFFn4IlH7iokVyV7dbvUm/gXmwpG8o1FAIBKI0Hv6u69EnOjAJivyBfqUJC7S uxzP5LJxCeo508rVHFlCxXD9OSVoA8OBK9CwCIvaV0xb5dHCPDJBmXFGjwI0u8tfOb0LxJ61Dlv6f 9XafrG47HBEDdXhzu9hdFVhX1uJFp9v8dYMlkkAhuIwB40QabW2xEHw4gAPW1Y1a2YmHmt+zMZIk2 t97llTyykl1eAR0S7ReEXFALiKIMke8UIF7RW0FEoYpJFHk/esFhC1MRG0kuePSOYOrTRjvmGfGtd 9/r2FNsxkJHTuOe5LPUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr2kw-00000006LQs-49mT; Sun, 31 Mar 2024 21:30:22 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1ni-00000006Foi-0car for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2024 20:29:12 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-516ab4b3251so131900e87.0 for ; Sun, 31 Mar 2024 13:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711916948; x=1712521748; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Zef0nzZ2xvfKTTGhbb7RG1PfMMOjv1sjApX9pDJjmRc=; b=hsys8jifck5A+p4yaZzyRjyad2xQfv1xMTNoi0Eza9oY0QOr1rHsePR46YBvyrxXm3 Nf93Jl08mwzYfFUND369ZN7g0Q8dvBMLvgzf2Fm7ItnHrxJw7pFMJknuoPqo3yjYkn92 Wx5GpEvJHMjzfNbfEHcu+JEWQqdPgiGv+YZoesfiMG+twc4cNwZBGKcbQ8E9biwlkWXc GozWMsQVCjPaFAXBGqjJNvulXec1yQUT/njWMpUvYXBSIWbxxSXyPCtGzv/uoEn3vgdK /6x1MAowz5dQiCam9Ji/WKxF/gGF33NsLb67TbCrHPOBQz/6wn1BzX/VMNXa34ty7otQ /QDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711916948; x=1712521748; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Zef0nzZ2xvfKTTGhbb7RG1PfMMOjv1sjApX9pDJjmRc=; b=qMTiqdWCu9MwukpblHYqGHYW4+cCsY9fj9ZT01MN0Hz6x2QOYckT/SZJ+AfOItb+N0 gcDMxUc+EwgvkSRyQEalBK3DpFoHkJT7smp9zUsCJaZwUxkqDdqIKYKFeeYZ78VxDICX 8Gx1/G4zZNuu3ye9tmdR53mhgNtNOcN/p3i63KU99eYfNNV4cGXnr9Wpv2j7BwSI7WJI Si9FJvc/RSlCcHYDNt/WW4j2oCkLfepLS1juYwlz3tA9x2G5zxnSJbeXorYLq+jvPzbb oQ65jJ2ogH5VJ3p2fmN0HWfuFrqqZ0N2pzi/YljmNT9LFkWv08U6BB8scOXfNcjZ1oUu v9Zg== X-Forwarded-Encrypted: i=1; AJvYcCVjmtKrJC8UxrS13zaDwGLRLJcpa089oFzSd+yOi+kl6T0RvKwYjnY68E/VCnBvkoxuCnZTCB+vMqsRZvgDN+qAuXGtSRfRJdPO96mWKk1o4f7PW20= X-Gm-Message-State: AOJu0YwcyxO2i4typrWLpDIRu+33BjSF6IZwQPTtET2VKdrAyrbRpGiL fCN5WQpsMnmPgdHEiQQR2BlyqNX1y4b8uYEHRV1q2Yy7ObJ8UKirQMU2HGRMwao= X-Google-Smtp-Source: AGHT+IEeBeqNuZwIfLQbwY0vtR41HMctXhZ/hlhyqOsgFR3m8enJB1rayNnKs0HiihAbaUaz+EUPCQ== X-Received: by 2002:ac2:55a3:0:b0:515:cd30:cd4 with SMTP id y3-20020ac255a3000000b00515cd300cd4mr5778415lfg.43.1711916948521; Sun, 31 Mar 2024 13:29:08 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id y25-20020a197519000000b00513cfc2a7aesm1237276lfe.71.2024.03.31.13.29.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:29:07 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 31 Mar 2024 23:29:00 +0300 Subject: [PATCH v2 03/12] drm/imx: cleanup the imx-drm header MIME-Version: 1.0 Message-Id: <20240331-drm-imx-cleanup-v2-3-d81c1d1c1026@linaro.org> References: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@linaro.org> In-Reply-To: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@linaro.org> To: Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Chris Healy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1357; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Ur4bgiHo+4NL+0zs7qW21KEsP+z03vz9MHkP96MxsJA=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCceOtaRv6AfyisrG+WrNl8dGCI3K0Kw6vglYg sqv7jAKSTuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgnHjgAKCRCLPIo+Aiko 1STjCACN1Fcy46Njl3mD9RbVJ9J8+l5TVGpyE/uU2LNja6WGRJwELYrPl7UrBkzUfEKao7AhQ7w wKuB2eJNzk+5bi7T7wT3ICVV3mq39cxEK5weLsTGZTKKb9EDMuZwtI0CS2XIPRAHbQg/fPMRDo4 IvcpTt6sLExVGzjyJ2Wg7TwLT0xHwkrmJY4jLAmzefKAesmiyXwG6X6ubAeGnU8nbO+Gjw0G8Wm V03iQeFZ4f8ddwMkS9fH9FsOz7IWFekfRnHyvl3iY0xIk2mLAd+vZOx4IHTOp0S8FrvY3s2foC3 9BD/zTWcq0kEgalTxeqXaS2F9/s1TBSW+9/XgefKm00Im+1I X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240331_132910_697854_F177A211 X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Drop unused defines and obsolete prototypes from the imx-drm.h header. Signed-off-by: Dmitry Baryshkov Reviewed-by: Philipp Zabel --- drivers/gpu/drm/imx/ipuv3/imx-drm.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/imx-drm.h b/drivers/gpu/drm/imx/ipuv3/imx-drm.h index e721bebda2bd..e01f026047de 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-drm.h +++ b/drivers/gpu/drm/imx/ipuv3/imx-drm.h @@ -3,14 +3,9 @@ #define _IMX_DRM_H_ struct device_node; -struct drm_crtc; struct drm_connector; struct drm_device; -struct drm_display_mode; struct drm_encoder; -struct drm_framebuffer; -struct drm_plane; -struct platform_device; struct imx_crtc_state { struct drm_crtc_state base; @@ -24,16 +19,9 @@ static inline struct imx_crtc_state *to_imx_crtc_state(struct drm_crtc_state *s) { return container_of(s, struct imx_crtc_state, base); } -int imx_drm_init_drm(struct platform_device *pdev, - int preferred_bpp); -int imx_drm_exit_drm(void); extern struct platform_driver ipu_drm_driver; -void imx_drm_mode_config_init(struct drm_device *drm); - -struct drm_gem_dma_object *imx_drm_fb_get_obj(struct drm_framebuffer *fb); - int imx_drm_encoder_parse_of(struct drm_device *drm, struct drm_encoder *encoder, struct device_node *np);