Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1861480rwp; Thu, 13 Jul 2023 18:39:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlE5zp/rJOtZxsxUiQBb0dfU95l6KqAmRKqLcBOJjZrqu1GXJWpGodNNzWoktUBgAlqWAVCr X-Received: by 2002:a17:906:8925:b0:991:f427:2fd8 with SMTP id fr37-20020a170906892500b00991f4272fd8mr2434395ejc.74.1689298791189; Thu, 13 Jul 2023 18:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689298791; cv=none; d=google.com; s=arc-20160816; b=LMQEK7O+mZu5BQNFSFaYGJofDQbCE0hSjyrMvZlm0xB4d4z9Dd1cx2Qtsam6fP8r6H O82peFsSq5dS1QjONavfJuexEeje+QfwuWVLzlP5Bl9UCmbp9ulqUF8ak9fAn3FHPAHJ KM4+xSq9OYKa8noyA7QSKJuHYQcIwqqizr6rjR1Uw5ytU8nfYXg5YwE9wDPiyWxF19NB lo4HyNl79Bhq/hvZQRYzGLKdgKcbJROXMwzGC/KT2Si8kL1d38R7nUGpmaPme0Pv3Ukg YkipiYuMdYAjFNnGFaiGb9b0ZBX6i6EI30WuhhZyCN0i46X5JT+qvEdZ2zIMfn568yLH ekOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8NAXvlLnPBBm175/q2hwxEB610yFeP0GZtocx/YGkDQ=; fh=qGUBn30YJyENtYt8Bk1+br1osKcezKO+AP/l3XKcoBs=; b=EOI20Hyz2XFVVywx0pwXR1aB096btC5l2Kd6yjVn3T9gpwGfamp4iAMwukQmCAhsXl hxqHkTfsY7x1iAXGCIXn6bKyUkLJl2WMYvQ+tfB0dEAvhfShCYptm4wPQVpkfZfv2Q75 XwYcNPjKLNtiJaNTnjdZjeT7IWfyDOvvhnO+DQ0d1klV9Yx5H0DP+NPtMn4i5DapgaO+ vHoTTBQswCzOAJNbUtVyROnf7PD0JG5lEvaCeZaAYbFpGo+CMMKmF9nCcNoK8lsg/r9e SddxGKVJmZ4bcvkiHdxjICnAtCEWIT77RO/EOaahSecVvXL6ePj28tO5KCQ6xO0wsEc8 oq/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="liu/NMt3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k12-20020a170906578c00b00993ac8be754si9178311ejq.106.2023.07.13.18.39.26; Thu, 13 Jul 2023 18:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="liu/NMt3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234101AbjGNBiO (ORCPT + 99 others); Thu, 13 Jul 2023 21:38:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbjGNBiE (ORCPT ); Thu, 13 Jul 2023 21:38:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473662D63; Thu, 13 Jul 2023 18:38:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87E2F61BB9; Fri, 14 Jul 2023 01:38:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC4B0C433CB; Fri, 14 Jul 2023 01:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689298681; bh=4DZEdPQyybkjFKpYx7JH1MF+hEoS/Ylm1gHH8AEdVbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=liu/NMt3SYEYvgfv+ioHuHjSrql38lpoNaOr3m7FAeLxqLO7Q7JxPIHcj8vRe3xdC CNKGVyUE2/Wfvb7qEzfugxeXHKpeBRZRRLmoNjC2Y3EO9i3mvEjctAPMpJhc3L5cSw bBjFKAwu/ULMxmLO7lkmH+SwIyxvvge+MURbw1F2W2x26kqSgvL7lO9evxp+PFsTxg vtTe7OFcQXjzZr/F9nU6YSYg+EicDDGD0TKaBh/SBAedlCVRWUDfFF/rS9j8E6BvBH llk8N9PxQJdbW0I/B7DrJQzF/iX7/AyIiyrrdB/CADE0dAPnguULEVmjLTV9BCSACt yI9W20pZLRUuw== Received: by mercury (Postfix, from userid 1000) id D04991067687; Fri, 14 Jul 2023 03:37:58 +0200 (CEST) From: Sebastian Reichel To: Sebastian Reichel Cc: Gerald Loacker , Michael Riesch , Miquel Raynal , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: [PATCH v3 03/19] drm/panel: sitronix-st7789v: add SPI ID table Date: Fri, 14 Jul 2023 03:37:40 +0200 Message-Id: <20230714013756.1546769-4-sre@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230714013756.1546769-1-sre@kernel.org> References: <20230714013756.1546769-1-sre@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SPI device drivers should also have a SPI ID table. Reviewed-by: Michael Riesch Signed-off-by: Sebastian Reichel --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index bbc4569cbcdc..e4d8dea1db36 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -394,6 +394,12 @@ static void st7789v_remove(struct spi_device *spi) drm_panel_remove(&ctx->panel); } +static const struct spi_device_id st7789v_spi_id[] = { + { "st7789v" }, + { } +}; +MODULE_DEVICE_TABLE(spi, st7789v_spi_id); + static const struct of_device_id st7789v_of_match[] = { { .compatible = "sitronix,st7789v" }, { } @@ -403,6 +409,7 @@ MODULE_DEVICE_TABLE(of, st7789v_of_match); static struct spi_driver st7789v_driver = { .probe = st7789v_probe, .remove = st7789v_remove, + .id_table = st7789v_spi_id, .driver = { .name = "st7789v", .of_match_table = st7789v_of_match, -- 2.40.1