From nobody Tue Oct 7 10:30:59 2025 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 743E81E261F for ; Fri, 11 Jul 2025 04:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752208403; cv=none; b=IAvRvy5ifRgCtxu68PEPf9ro5dp0VNuIJW3r9AuuZ0b2EhmiesVbk0skYrBHm/B3rY45fnvY09uytHz8td3+Ht4kFTVSuQAtQPjMl/u3ulRWc3mqc5VIciKtI+Enr0paZWeyOTPrqvmgy/Ktf+GqJ40UMoO87D9EJOuX70QOG8w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752208403; c=relaxed/simple; bh=pasqR+ymXP+Ee0FMYpSDIKGKmE5tAtwA2XZu07wcBdw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c318U6NhEoiimUtk90UZp4QnnWrvQ/Zf4oQ3AFYTTf42THIMea4QJ9n/hprINtpA3XayGJkaq7F969cmmzcKbu/skSqyhmsoHKlBDG4bYZQG9dzO1qaNsTZF+bUaKoMtvsIIEIChFVG4089T8LSbuAPNUq3mLTJ2m0BOAc9P1hc= 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=SVtHU0LR; arc=none smtp.client-ip=170.10.133.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="SVtHU0LR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752208400; 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=v5NQY7SJ4LLppWBDJBpdzLvXvWEVdpffYWehFNWdW2o=; b=SVtHU0LRhNeZD31nglhH0kZbKZSPjeHlVnWw1SMf2hY4o7CwU9hki34XsR6ocTQREJ8ugQ I94rj+fKKXycHbnFYojA941bNg6dtPHnboaOHVvvICpnK1e/em8nN9SBoBvlrCnzy24sa2 8g8Qhs5CQkOlqF6noS8hj6/SfJg+VlM= Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-270-ZqAmy-P-Nxe49eipFG5q7Q-1; Fri, 11 Jul 2025 00:33:16 -0400 X-MC-Unique: ZqAmy-P-Nxe49eipFG5q7Q-1 X-Mimecast-MFC-AGG-ID: ZqAmy-P-Nxe49eipFG5q7Q_1752208394 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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A1C4A19560AD; Fri, 11 Jul 2025 04:33:14 +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 9090018046C6; Fri, 11 Jul 2025 04:33:11 +0000 (UTC) From: Anusha Srivatsa Date: Thu, 10 Jul 2025 23:31:25 -0500 Subject: [PATCH 14/14] drm/panel/boe-himax8279d: 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-14-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=1431; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=pasqR+ymXP+Ee0FMYpSDIKGKmE5tAtwA2XZu07wcBdw=; b=u+ndzt2KL06RSFFMDzl6bT+IEYcNTgF84vu96MNw+nOmxxJr1GlYVtAQLfs8CGyXu1Ckjz/WX uBxj0txISPOBBDcU5PPuuWd/bJfGl252+cOYgZIY6NOFoelCBDPZ5HA 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-himax8279d.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-boe-himax8279d.c b/drivers/gpu/drm= /panel/panel-boe-himax8279d.c index df746baae301cf70d9fa940b36aae2712e73b3e3..4a8560b4b899a4da3b307dcb436= 82303d0543813 100644 --- a/drivers/gpu/drm/panel/panel-boe-himax8279d.c +++ b/drivers/gpu/drm/panel/panel-boe-himax8279d.c @@ -847,9 +847,6 @@ static int panel_add(struct panel_info *pinfo) "failed to get enable gpio\n"); } =20 - drm_panel_init(&pinfo->base, dev, &panel_funcs, - DRM_MODE_CONNECTOR_DSI); - ret =3D drm_panel_of_backlight(&pinfo->base); if (ret) return ret; @@ -865,9 +862,11 @@ static int panel_probe(struct mipi_dsi_device *dsi) const struct panel_desc *desc; int err; =20 - pinfo =3D devm_kzalloc(&dsi->dev, sizeof(*pinfo), GFP_KERNEL); - if (!pinfo) - return -ENOMEM; + pinfo =3D devm_drm_panel_alloc(&dsi->dev, __typeof(*pinfo), base, + &panel_funcs, DRM_MODE_CONNECTOR_DSI); + + if (IS_ERR(pinfo)) + return PTR_ERR(pinfo); =20 desc =3D of_device_get_match_data(&dsi->dev); dsi->mode_flags =3D desc->mode_flags; --=20 2.48.1