From nobody Fri Dec 19 01:14:00 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 C072915E97 for ; Thu, 13 Mar 2025 00:55:09 +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=1741827311; cv=none; b=CMrp+uzfixLWDqp6JJaGn6Q0MKz87ytJ7hp8GQZoKWZkeJtQwWYKl+RI3jQnhEV1SPMQNyuBUHM2m38K21sfOw9fb6ug4FYW8fbRI7tDmiZcruGK+5zVnUXHttyfitoPZlq1WIn7fdcq+9l4a2SqKwvX09zFuRgho0/c8PUWrks= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741827311; c=relaxed/simple; bh=SpQpLCI9T0ZitGPUZWpwmh94k+DUnd4JAAyPF4rKF0I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HR2PZElnOnvSgAHs9XjjPV5y2ZPFeebu5w1nBnsKqcj9eUoJf6uUQ/ZfigVUoNo0yg29jIHDjYa1ZRtWVe1c21ZKmWzh9I7FX+o8MfGcpGDCPCE/cvAmSEWOTcL6s4+TupJJoq4vCBOGHpt5AmOGWA8rg8QGXEMUcgiEWSb6biw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=PKkw9ZC2; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="PKkw9ZC2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741827308; 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=5sMj5qQZ1mcmow20dX8XpYgNx8znNE77O3nTheH5umQ=; b=PKkw9ZC2NocReqAktq5XgVBHI11H2s2pRMJgAATaPOZOfeDAq6VCcip3AUV7Wcx1frsDhp 4b+u2s8/L8bDRO3e052gtbYJtVdMPMmW8yvilYYqrZP/ZIEBkruDHCBwoTPJRdIDjT6OIL +st3trN+Z+6uOQbULwqA9gJC1kFI9jc= Received: from mx-prod-mc-06.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-343-w-TV-RCeMuG1OFVDo14WUw-1; Wed, 12 Mar 2025 20:55:04 -0400 X-MC-Unique: w-TV-RCeMuG1OFVDo14WUw-1 X-Mimecast-MFC-AGG-ID: w-TV-RCeMuG1OFVDo14WUw_1741827298 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 02E7C180025C; Thu, 13 Mar 2025 00:54:58 +0000 (UTC) Received: from asrivats-na.rmtustx.csb (unknown [10.2.16.186]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 93D511955BCB; Thu, 13 Mar 2025 00:54:55 +0000 (UTC) From: Anusha Srivatsa Date: Wed, 12 Mar 2025 20:54:43 -0400 Subject: [PATCH RFC 2/2] drm/panel/panel-simple: Use the new 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: <20250312-drm-panel-v1-2-e99cd69f6136@redhat.com> References: <20250312-drm-panel-v1-0-e99cd69f6136@redhat.com> In-Reply-To: <20250312-drm-panel-v1-0-e99cd69f6136@redhat.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Luca Ceresoli , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Anusha Srivatsa X-Developer-Signature: v=1; a=ed25519-sha256; t=1741827289; l=1221; i=asrivats@redhat.com; s=20250122; h=from:subject:message-id; bh=SpQpLCI9T0ZitGPUZWpwmh94k+DUnd4JAAyPF4rKF0I=; b=KqdpOOFh2TvvDM2X5xcUUHYAqKpCynRDbDSYyD15YnRf1z1y+1B1rBB4EUq8RHjF9PKF6TTv7 W8+nxlmyIU3C8vaZbdqrPj8AhT6uon5pvDWyTu4hVWMGG9VXxE2IHuo X-Developer-Key: i=asrivats@redhat.com; a=ed25519; pk=brnIHkBsUZEhyW6Zyn0U92AeIZ1psws/q8VFbIkf1AU= X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Start using the new helper that does the refcounted allocations. Signed-off-by: Anusha Srivatsa --- drivers/gpu/drm/panel/panel-simple.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/p= anel-simple.c index 232b03c1a259eb15e423b9d452d28e2ff95c70f8..d7530c3533af34f83ce8c6d6067= e7f293f2d4bf1 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -579,7 +579,7 @@ static int panel_simple_probe(struct device *dev, const= struct panel_desc *desc) u32 bus_flags; int err; =20 - panel =3D devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL); + panel =3D devm_drm_panel_alloc(dev, struct panel_simple, base, &panel_sim= ple_funcs); if (!panel) return -ENOMEM; =20 @@ -694,8 +694,6 @@ static int panel_simple_probe(struct device *dev, const= struct panel_desc *desc) pm_runtime_set_autosuspend_delay(dev, 1000); pm_runtime_use_autosuspend(dev); =20 - drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type); - err =3D drm_panel_of_backlight(&panel->base); if (err) { dev_err_probe(dev, err, "Could not find backlight\n"); --=20 2.48.1