From patchwork Sun Jun 2 12:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13682796 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3917438DF2 for ; Sun, 2 Jun 2024 12:04:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329892; cv=none; b=sTuU7U2kgKNk4BqnE21XqnIWi3X7rzUQWahAuKCwNLPSBKVi1iGuRatXIVERvX5TJkNm4mswOjsMbgYcPvZ5Kq2Pjchx/wbKDjWb503uxk9ulSMcBGDN/4Q56YOAXk9C49HDvDOPt4dlYYL5DJ3o5y46czzQC2jMhBEMitYjoIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717329892; c=relaxed/simple; bh=ZDw9je94QoyosO0168STtseYxQQ179pVpV6GiETvE+4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fBeLfw0N4N394wmnN/5wH/U0ABN+/adfiavM43VOIs7ZRlKL+QVdsTpw+FCbYzpY1gaAwUFfPAcSriFAVjrMpq+QuX4I9S+KEym1+gqCSamvL1oL6n3WLVgSuoN2xdqh3YaesEdZjg+YK5EesMEP3XsJKr77TYL+slzhh8B0DK4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dU1aIAho; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dU1aIAho" Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-52b91f655d1so850649e87.1 for ; Sun, 02 Jun 2024 05:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717329889; x=1717934689; darn=lists.linux.dev; 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=nxc4vHH87Y1eSO87AR835I7/5WLCpgJXyFLj/BGpZY0=; b=dU1aIAhoGas7tXmL+cl/SFrfe+5InvKhG2ylqoQ+X20W9IcEo12sMB/LFcF7TRmGId iudN3ikmrw2buJBrNqzKXQfbYQJNXsmjc3qSD3eUKJOnZpMbnvCmkWmuyZ5nl7TX56GW of+0zKRP26unAac3KYeLzNRRjupCor6bdW5g/MwJgplkS8uKbiEUm54MxVe9IJuI355t 7jzzxJhrvSzs/pBbDWL348eizENt4C8VeCoGzGo/uZSIYfjmy/1LlxJNu9XYTttl+ao2 6zjsXeZ8plidK9nr8+Pv6/SkBNQwCz9qtod3xUAc3VjtMImjShhoPrXeOxyAddThccZ7 oH5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717329889; x=1717934689; 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=nxc4vHH87Y1eSO87AR835I7/5WLCpgJXyFLj/BGpZY0=; b=mFRrrM8MXE05ARytVrjGwg/jJwNj/z7Z2ldDw9c94ZQv8JOp2WUvpodyU/aL/Ah2dN 34tetk7+6ohpy8Z7nnjK0tzNpaxG7ZBLx+yZdvjRmCjcgPjuiCChyz7NXnwzxylLi/Ak gsZu+cZqR4i0RsZJccRjEKKrB3qzHhcBZSuNWZYm9JzY54q8odoOZZ0SuNG0FPyQm4GI QU9y9STyPiWr2G5GZCCi41AYuXdXEneJ+RMDu1QCotC+LyEwPXzqCJb0IxAxaLdlPE3x BWLpcWemdOqF4fayyAsrVV+S29uAjExqIpfsGFssWumRBEsBxet9YBwPHtJVFelRApHs 3aSg== X-Forwarded-Encrypted: i=1; AJvYcCW/pVuqfN8Emv4RpdKEZSKRX2L1k9+rZPN1/vJS3EdxHZd2TW8K3yjRjfGkqnyMXTBHw2e3+k1ldWczZdBHiKOpxzH6 X-Gm-Message-State: AOJu0Ywu5zKNdBIg8c7krGVDLptpwu4zQGaXFq16hA6gT+r7RPqqmpOk ehqMTr6I39cryOK96s6Hn1oXriWZyToLWarE8mBjx6w65d8gWMSlRRieLdwi/j8= X-Google-Smtp-Source: AGHT+IFPOiv0yb9NenXs61eeyl+FTzUia9VO7YGHEV3B4cyF+m7yIyCA+pulo20IEMCgPXGBKi/V/A== X-Received: by 2002:a05:6512:3d20:b0:52b:963d:277c with SMTP id 2adb3069b0e04-52b963d2864mr477027e87.33.1717329889449; Sun, 02 Jun 2024 05:04:49 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b8b56867fsm759398e87.44.2024.06.02.05.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:04:48 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 02 Jun 2024 15:04:43 +0300 Subject: [PATCH v3 03/12] drm/imx: cleanup the imx-drm header Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240602-drm-imx-cleanup-v3-3-e549e2a43100@linaro.org> References: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@linaro.org> In-Reply-To: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@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=1410; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=ZDw9je94QoyosO0168STtseYxQQ179pVpV6GiETvE+4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmXF/c9m9P02PzAYv+Hvngg0pK/UDBTwhhmG1zr 6YIzCrb9vGJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZlxf3AAKCRCLPIo+Aiko 1fjzCACVJAOnM38OBMjesvSYWvhCttUEqRnqa1cwq4nlLesJDTMZ2OUTNhRtlYVXOyjfQdPCZoY sFg6k3yFt2WWYJBGVbYAc3fuchDTgb0HEb98vxj41NM9rI7BNJSWHJlLr6XS7RGIK7LtSQ9vpcj ESAFP3iCtlpbs+a0als6qX4eWKJZOLwj8uq1Lt4aQSHCSo9e4RyTzhFKMcp9PsbQWyhhWQLek1u ABZyZLlg4UbyRcy0FlQAFgPnpEw6Y5h4FovYheyJU3SjH1hxE5Ve5sHgaXMJ8/nqFD0scxw+dML s3IqxYlKtclaMDhG8+vC5UlutqEjdAQVKc/YRM0Y6WMrzg/l X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Drop unused defines and obsolete prototypes from the imx-drm.h header. Reviewed-by: Philipp Zabel 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);