From nobody Tue Oct 7 10:34:17 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B41ED1B0F19 for ; Fri, 11 Jul 2025 04:33:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752208401; cv=none; b=qo7YVQ//MzUBSgepHCuucpczQHsz87N3KGK+zmVic1npdwjED/5Eyu6/DrzP2QBWVbvzfYh/b6f+RD/vWoJ5xnzw9i+Pfy1eEXrb5wlDh0q1ZPRphCBiWD55c/FLlzZS5y1u1LOH2nU5GglLIGav9rJDYrx5h6A3TddbBEjGnmw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752208401; c=relaxed/simple; bh=a6ZNYWyy1tj4pWbYzR6Lh3OvSPa78NsH3QPr0ODN52k=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AnGo7knpHyLwtqgJPB1jK2UcGimBNmCpJsRBEPrQFI2VQWH6TGavmocuxJ9L3qXCCiZXci+1IOU6rFKt6dSgpxdiSC++rP1XACbAzLv1UrIdNiPvWDhJv0Sk4LWEwQlBi8ziMVLuRNeR5F+SmN1FCk4lwCrLaHveRXUKUDBQv6E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Xq/Eb8V6; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Xq/Eb8V6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752208398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GWTeR8/c8og1zZivLTfFMs4guLGelLhrLnAKtFs0Ahg=; b=Xq/Eb8V6MscOoMEVVgM21NcXuJrRKGAtnhFiJdVC1GpwCslV0HDj9tuU1Nnin3Yr9r39fj 3TSBFT/MpzE0YyJSyhZZ1TG1B4iYJoN03A7NhikVaLhQQCbOW904GAwx3+MYkVAWQ6llHu n19axk7WszwIVCGsV99LbQgN71ikq4o= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-47-Zgph_v_qP0OODgSQpsK7Tg-1; Fri, 11 Jul 2025 00:33:13 -0400 X-MC-Unique: Zgph_v_qP0OODgSQpsK7Tg-1 X-Mimecast-MFC-AGG-ID: Zgph_v_qP0OODgSQpsK7Tg_1752208391 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 6067718002ED; Fri, 11 Jul 2025 04:33:11 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.240]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 37E5A18002B5; Fri, 11 Jul 2025 04:33:08 +0000 (UTC) From: Anusha Srivatsa Date: Thu, 10 Jul 2025 23:31:24 -0500 Subject: [PATCH 13/14] drm/panel/boe-tv101wum-nl6: Use refcounted allocation in place of devm_kzalloc() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250710-b4-driver-convert-last-part-july-v1-13-de73ba81b2f5@redhat.com> References: <20250710-b4-driver-convert-last-part-july-v1-0-de73ba81b2f5@redhat.com> In-Reply-To: <20250710-b4-driver-convert-last-part-july-v1-0-de73ba81b2f5@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Florian Fainelli , Broadcom internal kernel review list , Sumit Semwal , Casey Connolly , Jerry Han Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1752208280; l=1515; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=a6ZNYWyy1tj4pWbYzR6Lh3OvSPa78NsH3QPr0ODN52k=; b=aaLAXmAYTYPXIf6rYqGtaHTBQU8AWJBRxjzPVIQsvNsueaKycU2N4n5l1Cs7Y0P0ac3dxJC98 f6YN3atFk7aAuH3Dgxrwe3L15e1LmPkaaiFkiqOqchKro9jSrraiN9c X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Move to using the new API devm_drm_panel_alloc() to allocate the panel. In the call to the new API, avoid using explicit type and use __typeof() for more type safety. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c b/drivers/gpu/d= rm/panel/panel-boe-tv101wum-nl6.c index 3e5b0d8636d087596aeb3ef0a9feef14157942ca..d5fe105bdbdde5147c539294592= 8148ebfdf53b5 100644 --- a/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +++ b/drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c @@ -1720,8 +1720,6 @@ static int boe_panel_add(struct boe_panel *boe) =20 boe->base.prepare_prev_first =3D true; =20 - drm_panel_init(&boe->base, dev, &boe_panel_funcs, - DRM_MODE_CONNECTOR_DSI); err =3D of_drm_get_panel_orientation(dev->of_node, &boe->orientation); if (err < 0) { dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err); @@ -1746,9 +1744,11 @@ static int boe_panel_probe(struct mipi_dsi_device *d= si) int ret; const struct panel_desc *desc; =20 - boe =3D devm_kzalloc(&dsi->dev, sizeof(*boe), GFP_KERNEL); - if (!boe) - return -ENOMEM; + boe =3D devm_drm_panel_alloc(&dsi->dev, __typeof(*boe), base, + &boe_panel_funcs, DRM_MODE_CONNECTOR_DSI); + + if (IS_ERR(boe)) + return PTR_ERR(boe); =20 desc =3D of_device_get_match_data(&dsi->dev); dsi->lanes =3D desc->lanes; --=20 2.48.1