From patchwork Mon Mar 11 11:20:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13588638 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 5A04FC54E58 for ; Mon, 11 Mar 2024 11:21:05 +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=jbWlOuDOSkDKDM eWFIvunEjExmSgEgDcUjGzWHeZarNZwXKM2aljPesVqWs5vSGuaEwf0cQIZ+Lzncti0qbNtDlfvfv 6Ht7g2NaYMaBbS+uEZPfZNMhVqhzNw0o2PvHDcO+6qSNZvNfgHNbHhrv8jFQ80GD8JXMGs13b1P11 GKYSnFlYv0Da6muvw4XG7tshn6qtjmpr+e2THWaEWwUoZWHGKUI48IcSDwVA/+mHS0bT6fm3VmsWO F7OSaPnbg3P+KDd5zNGEEzhM2gyCzHVeuaH/vpsHFNntkya7sj2N7Fs/DTw83inBxNcZI7qaiIuyP fe8PNSXSp3ZilcSh/4qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdi7-00000001FkH-1vVu; Mon, 11 Mar 2024 11:20:51 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdhz-00000001FeC-0ggy for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 11:20:45 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d109e82bd0so57543761fa.3 for ; Mon, 11 Mar 2024 04:20:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710156041; x=1710760841; 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=RnqcPREgKjlyxigMmLL4Dvxb0UKmnEq1z2Mf/fLfLkXjaMX6qucsmyQtLoiexfKYFu LBCx3xjxIDrb0MGUhRIzT76Ck7EKg1YkYhBjZYFFxVLxEaOmA6g9f4RUAbzbv/oWDX+f /I6Gm4SPinSWc426UFu8oqc1bxZ+4oocSTiCgnT7yLByQ2h0RqK4p3A1rNYVq7oQ7DOq JuF8/JgIfJ1BhcMiAp2PUqiIO8HpL4bINFFFb3mcQuiouIEq78q1YUayytiOyg7ORfO/ oNiCwQ2CBEfgVxCm3nra/8KqXw+qsN30ehVrKuLXpxlWHFX8eqwpm6KXEstB2HJXnHrN Sn0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710156041; x=1710760841; 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=Uz2d+8A03g6mjrwC8QUR8ZZsaMW/NsobUVBhfhKvTJ4FKa4b9IYOnRYYaDR5CWLaao yACmJ6EWCbLeDHLsId9Hn436ue5nXIY6tr0SA6npCMfxJLBnvu+6EYbVTRWBx+eUl3dk aTYHoBYF6fd3HzQ/rZMuReYmY2lWze0vcDW8lSkQSyKQgLDz/v45Q7xLW88pM1LPCiNq Q3FhAEztoRORkoy5dIfHDethkbLINxLOFyhqgcw6tIeQE4pncSv7fw9f/RDefpqgdSju p0CUD4bbgqXDg30Uks6T6l84RGWPlE/vZcmU0W65X/0/dpQWWbq+8KBN/VVQixux+u22 tyEQ== X-Forwarded-Encrypted: i=1; AJvYcCWOWJUWdhvebukI6zrm27IFpQhlwzcRJRIaDG7ICe/Ztcv8+jR70U1Rny6wwm/d+FVq5+CCluXocKY+U8TpzvR1stH1olsE72roNLBvRA++kA/QJYo= X-Gm-Message-State: AOJu0YwQ6Dl+PJOQ5RXjZpnIZp1Rpmj3/kGnZbxvJfswZOlOvztS8dlt 6vhIT+b0qHK1+aihgJAn+qMPkzp8RDIIcnY74Yc4v/nfMkCqL2zn1qiskXdDQpU= X-Google-Smtp-Source: AGHT+IGayv+PpX9zAAHSP8SflubaUb3k6JWZQzkHKZXejF/ylBMmobaETzEOak+dTBGpNFNxaR8l9w== X-Received: by 2002:a05:651c:1a0e:b0:2d4:49d2:a3d1 with SMTP id by14-20020a05651c1a0e00b002d449d2a3d1mr187992ljb.1.1710156040918; Mon, 11 Mar 2024 04:20:40 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id by10-20020a05651c1a0a00b002d2aa0b0d01sm1075200ljb.82.2024.03.11.04.20.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:20:40 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 11 Mar 2024 13:20:11 +0200 Subject: [PATCH 03/12] drm/imx: cleanup the imx-drm header MIME-Version: 1.0 Message-Id: <20240311-drm-imx-cleanup-v1-3-e104f05caa51@linaro.org> References: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> In-Reply-To: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@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/pANAwAKAYs8ij4CKSjVAcsmYgBl7ukDYTLRCINK5qAZo9ZeD9v6zVyvNykpsNtd3 gn8XZDNDTKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZe7pAwAKCRCLPIo+Aiko 1dGLCACi2am7a7E0ilLnUCgllinsWaJWythlIwTcuZOie4ikmbjYL4Luka6hmBbxx7mzPZT0T9K /v61fhn0eAbp3pvUrj+2Bi7N7fUszoaqRnsYDUqNThrQmNXrL88AHRHWE1KOKbcwVebi+hC6sBO dLiKou1b7bVLZiRbw14yy0IHSrbye1n0k9qq7gGgXwpVJHrEpFu7hAr/BlCrzOUCPfbS1MDOB2z O+hzrmfY5oZEcT3HZxr6QYeanQaye4pmmFnVEDe7dQUy+pbgxzJ3tNPyzpus3pVYQ6GikNt3bXB 7kiBHQMJYPpISn0Zi75Uc3XnIq/neudkPfEOQgcI7NSUXFA3 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-20240311_042043_236064_8E7ACE3A X-CRM114-Status: UNSURE ( 9.27 ) 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 --- 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);