From nobody Wed Dec 17 02:45:02 2025 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5643C10DCE for ; Sun, 10 Dec 2023 07:05:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231621AbjLJHFE (ORCPT ); Sun, 10 Dec 2023 02:05:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjLJHFC (ORCPT ); Sun, 10 Dec 2023 02:05:02 -0500 Received: from out-186.mta0.migadu.com (out-186.mta0.migadu.com [IPv6:2001:41d0:1004:224b::ba]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE38EAD for ; Sat, 9 Dec 2023 23:05:08 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1702191407; 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=ZS40PCbIzK3auiYn/GXpJfpDi577RkWA9rQ5FOV0MBQ=; b=idqBuCtwTV2tcx9ahA3GUEOw4ViylPD307f5DeQP7rSBBGH3J1xqgdJPi6FVCgi4WK9d/x /C1NgXwG3E5GxB1uuOP7IFK+fiARSMJNe9nTDCwTBNubk/GMzkVeOE3wtcFcVbWwvIT+UK G+YQWr/sfeB028yEW9z0rh1Ox9NAH4NDZqeP9itPr58/DSaUXgNwmOiPB0lQ1YlMSpPlDs RLK9st8JUZaC6iR03JoeyWxl0UBTAZfQMRBeZ3yFiWNddhAvgqVI1ocpMJ40uIYzHOaEsv HTbCXv0is/P+ykYhY7HH9fTch5SacmkHPsUTcTHfNYDZEvr1YlS6JMhzhleIzg== From: John Watts Date: Sun, 10 Dec 2023 17:55:50 +1100 Subject: [PATCH RFC v5 2/7] drm/panel: nv3052c: Add SPI device IDs MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20231210-fs035vg158-v5-2-d75adc75571f@jookia.org> References: <20231210-fs035vg158-v5-0-d75adc75571f@jookia.org> In-Reply-To: <20231210-fs035vg158-v5-0-d75adc75571f@jookia.org> To: dri-devel@lists.freedesktop.org Cc: Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Cercueil , Christophe Branchereau , John Watts , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Linus Walleij X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SPI drivers needs their own list of compatible device IDs in order for automatic module loading to work. Add those for this driver. Signed-off-by: John Watts Reviewed-by: Jessica Zhang Reviewed-by: Linus Walleij --- drivers/gpu/drm/panel/panel-newvision-nv3052c.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c b/drivers/gpu/= drm/panel/panel-newvision-nv3052c.c index 589431523ce7..90dea21f9856 100644 --- a/drivers/gpu/drm/panel/panel-newvision-nv3052c.c +++ b/drivers/gpu/drm/panel/panel-newvision-nv3052c.c @@ -465,6 +465,12 @@ static const struct nv3052c_panel_info ltk035c5444t_pa= nel_info =3D { .bus_flags =3D DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, }; =20 +static const struct spi_device_id nv3052c_ids[] =3D { + { "ltk035c5444t", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(spi, nv3052c_ids); + static const struct of_device_id nv3052c_of_match[] =3D { { .compatible =3D "leadtek,ltk035c5444t", .data =3D <k035c5444t_panel_i= nfo }, { /* sentinel */ } @@ -476,6 +482,7 @@ static struct spi_driver nv3052c_driver =3D { .name =3D "nv3052c", .of_match_table =3D nv3052c_of_match, }, + .id_table =3D nv3052c_ids, .probe =3D nv3052c_probe, .remove =3D nv3052c_remove, }; --=20 2.43.0