From patchwork Tue Apr 8 12:20:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 14042949 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 72572C369A4 for ; Tue, 8 Apr 2025 12:20:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7BE510E66B; Tue, 8 Apr 2025 12:20:16 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="nvIKf1Mo"; dkim-atps=neutral Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by gabe.freedesktop.org (Postfix) with ESMTPS id E109510E675 for ; Tue, 8 Apr 2025 12:20:15 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id E234C5C31EC; Tue, 8 Apr 2025 12:17:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CD80C4CEE5; Tue, 8 Apr 2025 12:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744114811; bh=6icKMsDBoOHHmeuCBbjENJki1Ht5D54b8YbBDwOQNhQ=; h=From:To:Cc:Subject:Date:From; b=nvIKf1Moh00WbEKwkVMV+qt24YtH+SA7Z4FClIyB2FzX336QK739vtJgjbdRqYV4t k5sXNkekEEG0uDF7dkKTO0xxziidwQpmeCKeDxpsAk2jbZkHfMMX8BcbxrzqSGo/pG AK6CTWpW8UnjCy3rfcZgZWiZbxqQgFjyIpMMC1toJHKKCEwW45F8z0zQWui4sKeEy/ LqvAwCATTIcYpGo0fE8u32igKiQ68XUQbRihHVsR14uazo19AOo00q56uRlxvuMkyD IEMo50jtbgN/pUPyn/2BvMC0oPRiapnXJbGRXdND5NsUFL7Mz1eLs5a94CdFlpd8/w 8Ap881ntFZUjw== From: Maxime Ripard To: Simona Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: dri-devel@lists.freedesktop.org, Anusha Srivatsa Subject: [PATCH 1/3] drm/panel: auo-a030jtn01: Fix compilation build Date: Tue, 8 Apr 2025 14:20:06 +0200 Message-ID: <20250408122008.1676235-1-mripard@kernel.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 9d7d7c3c9a19 ("panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()") switched from a kmalloc + drm_panel_init call to a devm_drm_panel_alloc one. However, the variable it was storing the allocated pointer in doesn't exist, resulting in a compilation breakage. Fixes: 9d7d7c3c9a19 ("panel/auo-a030jtn01: Use refcounted allocation in place of devm_kzalloc()") Signed-off-by: Maxime Ripard Reviewed-by: Thomas Zimmermann Tested-by: Thomas Zimmermann Signed-off-by: Lucas De Marchi Reviewed-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-auo-a030jtn01.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-auo-a030jtn01.c b/drivers/gpu/drm/panel/panel-auo-a030jtn01.c index 83529b1c2bac..6e52bf6830e1 100644 --- a/drivers/gpu/drm/panel/panel-auo-a030jtn01.c +++ b/drivers/gpu/drm/panel/panel-auo-a030jtn01.c @@ -198,14 +198,14 @@ static int a030jtn01_probe(struct spi_device *spi) struct a030jtn01 *priv; int err; spi->mode |= SPI_MODE_3 | SPI_3WIRE; - panel = devm_drm_panel_alloc(dev, struct a030jtn01, panel, - &a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI); - if (IS_ERR(panel)) - return PTR_ERR(panel); + priv = devm_drm_panel_alloc(dev, struct a030jtn01, panel, + &a030jtn01_funcs, DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(priv)) + return PTR_ERR(priv); priv->spi = spi; spi_set_drvdata(spi, priv); priv->map = devm_regmap_init_spi(spi, &a030jtn01_regmap_config); From patchwork Tue Apr 8 12:20:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 14042950 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 28DB9C369A2 for ; Tue, 8 Apr 2025 12:20:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8ECC810E676; Tue, 8 Apr 2025 12:20:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="W5T+jd0a"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9523410E66B for ; Tue, 8 Apr 2025 12:20:15 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 13C82A41154; Tue, 8 Apr 2025 12:14:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18990C4CEE5; Tue, 8 Apr 2025 12:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744114814; bh=kqkt8qXryF46fUmoX2kFa5N2VTNORH4GhigQnSUUqkk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W5T+jd0ahO0oPZy9OYzgiIP4slbtVevPEZlixBUYwYm9BEO+7tLeYw6r/5TSCB2d7 4Cbwt7m9XBNGlG/8eaLybq0LhqqXTsGYx/kzm5p7fgYRfTrhyluiWF6BTNaV+2nNwY 0NmetrLbiszuRAdtBYdPrB+ISAsRJ8RhRHs41AnV4/rocLGw8+kyfkuvaC63xISSte hblhmYzLSf0b0nvCTXJW6y87LYy6Lci0zdFKP+dFdjBayR0YJXs6k3zNREmI0kz9NS WI+MfBqVGeQH/K/nKODCHMSIDt9RPNe+fghyD21GMm8wEk81NCX2ZFs8X4R2Xaa7bi d8/qjg4AKyT3Q== From: Maxime Ripard To: Simona Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: dri-devel@lists.freedesktop.org, Anusha Srivatsa Subject: [PATCH 2/3] drm/panel: boe-th101mb31ig002-28a: Fix compilation build Date: Tue, 8 Apr 2025 14:20:07 +0200 Message-ID: <20250408122008.1676235-2-mripard@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408122008.1676235-1-mripard@kernel.org> References: <20250408122008.1676235-1-mripard@kernel.org> MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 77dcbce63779 ("panel/th101mb31ig002-28a: Use refcounted allocation in place of devm_kzalloc()") switched from a kmalloc + drm_panel_init call to a devm_drm_panel_alloc one. However, the variable it was storing the allocated pointer in doesn't exist, resulting in a compilation breakage. Fixes: 77dcbce63779 ("panel/th101mb31ig002-28a: Use refcounted allocation in place of devm_kzalloc()") Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c index 7ae196424b6d..f33d4f855929 100644 --- a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c +++ b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c @@ -347,15 +347,15 @@ static int boe_th101mb31ig002_dsi_probe(struct mipi_dsi_device *dsi) { struct boe_th101mb31ig002 *ctx; const struct panel_desc *desc; int ret; - panel = devm_drm_panel_alloc(dev, struct panel_desc, panel, - &boe_th101mb31ig002_funcs, - DRM_MODE_CONNECTOR_DSI); - if (IS_ERR(panel)) - return PTR_ERR(panel); + ctx = devm_drm_panel_alloc(&dsi->dev, struct boe_th101mb31ig002, panel, + &boe_th101mb31ig002_funcs, + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); mipi_dsi_set_drvdata(dsi, ctx); ctx->dsi = dsi; desc = of_device_get_match_data(&dsi->dev); From patchwork Tue Apr 8 12:20:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 14042951 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 4FAF0C3600C for ; Tue, 8 Apr 2025 12:20:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD90C10E675; Tue, 8 Apr 2025 12:20:20 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="i8PXd2tP"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 60B8810E675 for ; Tue, 8 Apr 2025 12:20:18 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 0256FA4114F; Tue, 8 Apr 2025 12:14:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0A675C4CEE5; Tue, 8 Apr 2025 12:20:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744114817; bh=jDhGaBKh6x+hZW0ir+Xu+AQjo8ZqV9ykBikBeKcwHps=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i8PXd2tPuSPryL6zFFGl32+MYazfDjXh7uEcnOTS6uu7DCmZOgofxzhRV9htn6RQJ 3LaH06sbtnqlKJZaTAWWZ7aqsWhFlsA4rVCAQPPoZj8/rtNQcLYyHzrLXPyRjS6gr9 jkgh5QKQZpcX6j4Q8zUEVMl2m3v28NYpHtGTEtFzQGOEHrWnFBAVOOaynLfdEFSn7w ChAwv2pmmQLIiLqEt5mUcqGmL7dG2ExS7covS3MK2daFFDEEJSzC2uZ8m9hznQxOrR ZmbnrAntXX0ewPwSnRcXMw67b4c/zKQ/a5+YHeCce7z7j9hfAiKfr/pyLiXDUqUAgF cCQtyMfdTAbeQ== From: Maxime Ripard To: Simona Vetter , David Airlie , Maarten Lankhorst , Thomas Zimmermann , Maxime Ripard Cc: dri-devel@lists.freedesktop.org, Anusha Srivatsa Subject: [PATCH 3/3] drm/panel: boe-tv101wum-ll2: Fix compilation build Date: Tue, 8 Apr 2025 14:20:08 +0200 Message-ID: <20250408122008.1676235-3-mripard@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408122008.1676235-1-mripard@kernel.org> References: <20250408122008.1676235-1-mripard@kernel.org> MIME-Version: 1.0 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Commit 5d2b55e55e61 ("panel/boe-tv101wum-ll2: Use refcounted allocation in place of devm_kzalloc()") switched from a kmalloc + drm_panel_init call to a devm_drm_panel_alloc one. However, the variable it was storing the allocated pointer in doesn't exist, resulting in a compilation breakage. Fixes: 5d2b55e55e61 ("panel/boe-tv101wum-ll2: Use refcounted allocation in place of devm_kzalloc()") Signed-off-by: Maxime Ripard --- drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c b/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c index 04c7890cc51d..20b6e11a7d84 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-ll2.c @@ -166,13 +166,13 @@ static int boe_tv101wum_ll2_probe(struct mipi_dsi_device *dsi) struct boe_tv101wum_ll2 *ctx; int ret; ctx = devm_drm_panel_alloc(dev, struct boe_tv101wum_ll2, panel, &boe_tv101wum_ll2_panel_funcs, - DRM_MODE_CONNECTOR_DSI - if (IS_ERR(panel)) - return PTR_ERR(panel); + DRM_MODE_CONNECTOR_DSI); + if (IS_ERR(ctx)) + return PTR_ERR(ctx); ret = devm_regulator_bulk_get_const(&dsi->dev, ARRAY_SIZE(boe_tv101wum_ll2_supplies), boe_tv101wum_ll2_supplies, &ctx->supplies);