From patchwork Mon Sep 25 02:10:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Watts X-Patchwork-Id: 13397373 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62F9ECE7A81 for ; Mon, 25 Sep 2023 07:43:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D607010E1F3; Mon, 25 Sep 2023 07:43:30 +0000 (UTC) Received: from out-198.mta0.migadu.com (out-198.mta0.migadu.com [91.218.175.198]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A87210E1C5 for ; Mon, 25 Sep 2023 02:11:30 +0000 (UTC) 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=1695607888; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N/ff6X+NOYVbrocTBpgld9JVVmEwtIn+hGTJSAUql5A=; b=pyJBUWtEPpDCgLUqa9T9Oq1k1KMROSr1qK+/oGDfyLpm7FKlDMkeYcBsjaeuwhqlpzJjO2 81KGKbBqBBEpVfEIb6xk0dg2yjGd58hrLWOtMUogFkT70gVIpPoDIdtymSNYr6lq6mtfB4 IyVdU/6caI9ngzI2b7G0a730EMgk25dTO8+vApYFXgcH41cAl7HfoIBptHVpXW39UVVCi0 HNIdiE96+J5m3GBthxaaZjULKbaQha3VRzubbqOIFZsg1iLr2Lbq/9Ir8iqi42TDCJSt54 AwbRgnWdOHUGi4ZkwcveyH//vprzEu9KzGbCUKWhPD+jjExg5qO1JLZNeOgK5A== From: John Watts To: dri-devel@lists.freedesktop.org Subject: [RFC PATCH v3 2/7] drm/panel: nv3052c: Add SPI device IDs Date: Mon, 25 Sep 2023 12:10:53 +1000 Message-ID: <20230925021059.451019-3-contact@jookia.org> In-Reply-To: <20230925021059.451019-1-contact@jookia.org> References: <20230925021059.451019-1-contact@jookia.org> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Mailman-Approved-At: Mon, 25 Sep 2023 07:43:28 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Conor Dooley , Krzysztof Kozlowski , devicetree@vger.kernel.org, Sam Ravnborg , Chris Morgan , linux-kernel@vger.kernel.org, Shawn Guo , Jagan Teki , John Watts , Rob Herring , Jessica Zhang , Paul Cercueil , Christophe Branchereau Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- 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_panel_info = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, }; +static const struct spi_device_id nv3052c_ids[] = { + { "ltk035c5444t", }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(spi, nv3052c_ids); + static const struct of_device_id nv3052c_of_match[] = { { .compatible = "leadtek,ltk035c5444t", .data = <k035c5444t_panel_info }, { /* sentinel */ } @@ -476,6 +482,7 @@ static struct spi_driver nv3052c_driver = { .name = "nv3052c", .of_match_table = nv3052c_of_match, }, + .id_table = nv3052c_ids, .probe = nv3052c_probe, .remove = nv3052c_remove, };