From nobody Sun May 24 19:33:41 2026 Received: from mail-yx1-f67.google.com (mail-yx1-f67.google.com [74.125.224.67]) (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 118D818BBAE for ; Sat, 23 May 2026 01:28:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.67 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779499729; cv=none; b=sAuA7IONarU6cFHYY9oLkiTZomEpm/M/Xrzac5De+vlS2UXmueAyX91D3kqywCt01svepx+HD6h6xmhuC7/h9qS1T+oai7rb9kh4oBHmdGVq8QJczXaNCKJQlXFpg0ltCRmbTr3ataPBm/6gxZaGGqKMj0AuIrNbLzTsKBbDRmU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779499729; c=relaxed/simple; bh=8tQw0ctbfgxohRnxdCfPVthGybcB7qTjpQBeozkyHFs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H8XvYAhhtrwRdhgw3hw21dkAB24jPZWc1CUlMXsptEHBlYBuQmoAxUGcDJV51JvkZ9pCYVsXJWxIe5lrgcyAHgAqdYdopq+e/EfWRdLfolmBF7hRf98XMqUEkdfKZ2zq0/QP11zGl9V69Y5w+8sZVAqXtRRNJ1UWAW3pSenD43I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KpPSY0XU; arc=none smtp.client-ip=74.125.224.67 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KpPSY0XU" Received: by mail-yx1-f67.google.com with SMTP id 956f58d0204a3-6587cee8b57so9041831d50.2 for ; Fri, 22 May 2026 18:28:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779499727; x=1780104527; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=6ELJsuqJw2+MUMy5nRR3yUJhv+8XiKjY5EbNN+zpf1Y=; b=KpPSY0XUkFNznR1DVllJs9lJUVNsCtdpe4jc3AqyAnbTERRxCz8qEpaGlezH+AzKqR PSRXzG++Xzz4EA4W7XU20gkJnNkBDN6M++hDa9eduOYbKtfTdEZ+HT/QhbLOVcSrs6fx QF2blxR/vXBiMbJHNiR/hwnVJBFuAvo8UmEb/PH9MEE7JjnU1MObnR06AsM+2yI+694r t2ZAq1FWw3nAxojF03UHws5MXte1mPAJp/wY0EpYCTVN4MlOkgzQ+X7nM4FPgwPvwbCm NK7gwfllOt1rw9bN4IOTbxTXRgNoxmQmgmJm6fQE1ipGYSczK0W1RemwmxOvL44bS7Az SLMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779499727; x=1780104527; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6ELJsuqJw2+MUMy5nRR3yUJhv+8XiKjY5EbNN+zpf1Y=; b=LYpqkuAJqtftGAnf0EkK4mgEmp+yvu+Z4T41dmVSFzzNRGNcztGM/0J80avanNUknw 3JPvDzw9kue1i7MJZn11cHUWK9t8zPcRlWC49vcKyqnqwCjugCOuwkDtOlStrN9pl9IA zQX4PP+77oH30mu5PdAnl84dv+U4+lMkoW5W0tCln37N4jiIJLTFIw4dHWPqYBzKUzvS SER7mB4ccsYSM0qmlkG6MVbYojH+Ye91evW1QT1l3MwRpYchg0RmaVuyn3owK0DZDhW7 igGC+fUij0LBcMDwLFAqlCfhDZHTyC7I8aL4PMQF/FrarRF+Rj+gHOAGfQj/66p8a2JC jMvw== X-Forwarded-Encrypted: i=1; AFNElJ/VVdnyNuHrARNBAJAyB5VxlkAPtYEqUZiLwjlaqsAST0pg1noNL2HnmNquRmZA6PY17j2kRSZeZkjGCis=@vger.kernel.org X-Gm-Message-State: AOJu0YwT3hLSEcNNWkruIpF2g7n3BMwWnsCNpGVyrXNqQgZHeqtDS7PL S3aF3S15CRisi0DzV0ClK051QkZjXyAL5wiLwnv0H1TAr7RHokBMMrzp X-Gm-Gg: Acq92OGMNs/INQ3kA48BIjOCT+5z9iALQ2Hpt2nqrGG6pKxCWKiREqh6rTynTx/xV6p uCrq1EsUAk1SzZxwnsvbI80QmKFjjU3gJIEAogi0qj+0gAb+O2L4K6CBH1BXZ32DPfngFKR5Sk3 i+3zAG86HnZiGMSngqdXKwC0DQ62GyQYnJGR9GmPlvh6gStgqOb7BgNE9mvhzW+eaim8X3gBpxH VfTJRca1EAeAn4RByKzdc0G/SDe4fnkKoC4r9qqpfGqHKTkS2AIxJ0ml0Lu+v60/l6nLTbAxO5Z FAsyNr5SSdj/pEBz8glkAdgzGiZwIRMmcdDPZ6N6xTh6Q3IiC4IzFY/4rzswd0PNedER82+hzjG X8QzsVuphHkLZU7RYjLWqAML+7egg3HGzFA6PHECAieAhL12+LpUTEa1bvwtcBmHdVvUwPk6iDZ kBqQQ7KlrSp5qSyrGCHB2b/HDaDJ0l X-Received: by 2002:a05:690e:440b:b0:651:c29e:f0b0 with SMTP id 956f58d0204a3-65ec963a356mr4605847d50.4.1779499727046; Fri, 22 May 2026 18:28:47 -0700 (PDT) Received: from flagship.lan ([136.58.14.109]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-65ecfda36bdsm1446622d50.16.2026.05.22.18.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 May 2026 18:28:46 -0700 (PDT) From: Jacob McLemore To: jmclemore.lkml@gmail.com Cc: tzimmermann@suse.de, Thierry Reding , Mikko Perttunen , David Airlie , Simona Vetter , Jonathan Hunter , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/tegra: sor: Remove usage of drm_simple_encoder_init() Date: Fri, 22 May 2026 20:26:24 -0500 Message-ID: <20260523012824.81043-1-jmclemore.lkml@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove the deprecated trivial helper drm_simple_encoder_init(). Inline the call to drm_encoder_init and add instance of drm_encoder_funcs. Signed-off-by: Jacob McLemore --- Saw this was a good first task in Documentation/gpu/todo.rst. This is my first patch, so apologies if I've set up anything wrong in either my email client or gitconfig and the patch ends up invalid. --- drivers/gpu/drm/tegra/sor.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index de8b2dfc4984..4ac23aedb682 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -25,7 +25,6 @@ #include #include #include -#include =20 #include "dc.h" #include "dp.h" @@ -3038,6 +3037,10 @@ static const struct tegra_sor_ops tegra_sor_dp_ops = =3D { .probe =3D tegra_sor_dp_probe, }; =20 +static const struct drm_encoder_funcs tegra_sor_encoder_funcs_cleanup =3D { + .destroy =3D drm_encoder_cleanup, +}; + static int tegra_sor_init(struct host1x_client *client) { struct drm_device *drm =3D dev_get_drvdata(client->host); @@ -3081,7 +3084,7 @@ static int tegra_sor_init(struct host1x_client *clien= t) &tegra_sor_connector_helper_funcs); sor->output.connector.dpms =3D DRM_MODE_DPMS_OFF; =20 - drm_simple_encoder_init(drm, &sor->output.encoder, encoder); + drm_encoder_init(drm, &sor->output.encoder, &tegra_sor_encoder_funcs_clea= nup, encoder, NULL); drm_encoder_helper_add(&sor->output.encoder, helpers); =20 drm_connector_attach_encoder(&sor->output.connector, base-commit: 79bd2dded182b1d458b18e62684b7f82ffc682e5 --=20 2.43.0