From patchwork Wed Nov 1 15:09:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Nyekjaer X-Patchwork-Id: 160573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:abcd:0:b0:403:3b70:6f57 with SMTP id f13csp489570vqx; Wed, 1 Nov 2023 08:09:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHLVdsBA3rj9vukv5XM6PZXEpEKGPphxDAVCEpYJX83dP2nTq6ARVDIiY09Ghz+2TnkxzU X-Received: by 2002:a17:902:cecc:b0:1cc:5505:fff3 with SMTP id d12-20020a170902cecc00b001cc5505fff3mr8028425plg.30.1698851393154; Wed, 01 Nov 2023 08:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698851393; cv=none; d=google.com; s=arc-20160816; b=kzs5D6xtFgkUaRy2RU6QWTFWDIQOsYTLglwtN70kBseJsUyogE1s2w/kCxi0XRtmsa 5oxMcMySY2fOBlvR+7tPqDmp8GdF0itlaua+blbShBQeTyHrVsNuco+aa7zmBDXhLn60 qdz8r5p+rnCHsb+SzcmsW9v7pVnyaXaoXuAzhj3QYY/X4kYpHfL4AA9cVSeNCBNOhYwc +t91rqdFaKwHNjE2FdDILJR9htWavPqxmhGpzAvTuHYeStQPVEpIqrhd+aeNvIruHUDx gS/ySSt5dRMWx8chhuPsgzb+tgVV4dK45z5cvglwVFZ4tDXwVPYReW3CdrIK9++sZhuv 82TQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=711TEnGr4X4OH5WFTKZ08m0PJqsxYbQSK0QR8kOpqwY=; fh=D5h95B7i06YrEasMj8cWS1jdK7y5+dkE9s67iZpby5M=; b=pAoN/lW6uqveA1fB980Hud9pThe5/vGpWtv8pMLYs6koL0grgCViH4Z5CWqmvIxt4e 0TSQ2824curKB8+q3IVljGF+HtMTX53jGfdR9j1aykaHMG5RObhgeZmkiqMle4TyiCuw /Z6VRuaV7MkskrWYL54yC6kjXYoVruB2oflrD2qsfZGp9jZer8J14PLJd87qmZGh4rg+ Pa6762oE4CCHNjrTzeb04EHqBZuch0JsztXGMkBwSIp92Agu8qeA25W18QdWPtTo+w1d wJkkKXebUUfdUtDopsn4j5OFU/uvz7KXggrikt2FIv88Vf8lNpeCk73D22mRAb/rorDf FZHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=0168vLjG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id x6-20020a170902ec8600b001cc76bea519si2093543plg.87.2023.11.01.08.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 08:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=default2211 header.b=0168vLjG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CA145811F919; Wed, 1 Nov 2023 08:09:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232278AbjKAPJs (ORCPT + 35 others); Wed, 1 Nov 2023 11:09:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKAPJr (ORCPT ); Wed, 1 Nov 2023 11:09:47 -0400 Received: from www530.your-server.de (www530.your-server.de [188.40.30.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E468FDC; Wed, 1 Nov 2023 08:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=geanix.com; s=default2211; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date: Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=711TEnGr4X4OH5WFTKZ08m0PJqsxYbQSK0QR8kOpqwY=; b=0168vLjGdnZgO6PPFLKcD/FiuP gW82cUPqcAt7Ulf/FtaRG0yhkmuoTsZPi4o6J+HL4Icc0T09QN4RP7j0AmCwxW8rWJepU+OlGd56v yLq2qLfP1ui60wFHUFtxFyUxwnlPg4FEk365NF+r1+MUUm5qf1n1Ny1EGtzYrLgRAl2w06/XIluV7 u/Kzz9n0FmOs+qvjy8aK9ypLwVGcIrRO6shiDXNqhHRNHcxUxhJncPlLwBlFr1llsUKBbTcg0fz2T nAOrf17AGo4OrBNuEahIgUnQrPg5+baiJBcf9GgTh5EpRHHQx3sduchpjybXGIIRKLAe4RhH1BAWz aeqPinkA==; Received: from sslproxy06.your-server.de ([78.46.172.3]) by www530.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qyCqh-000Dho-TN; Wed, 01 Nov 2023 16:09:39 +0100 Received: from [185.17.218.86] (helo=zen..) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qyCqh-000TBP-GB; Wed, 01 Nov 2023 16:09:39 +0100 From: Sean Nyekjaer To: Dmitry Torokhov Cc: Sean Nyekjaer , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: ads7846 - silent spi_device_id warnings Date: Wed, 1 Nov 2023 16:09:17 +0100 Message-ID: <20231101150918.4157499-1-sean@geanix.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Authenticated-Sender: sean@geanix.com X-Virus-Scanned: Clear (ClamAV 0.103.10/27079/Wed Nov 1 08:41:09 2023) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 08:09:51 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781374798317693233 X-GMAIL-MSGID: 1781374798317693233 Add spi_device_id entries to silent following warnings: SPI driver ads7846 has no spi_device_id for ti,tsc2046 SPI driver ads7846 has no spi_device_id for ti,ads7843 SPI driver ads7846 has no spi_device_id for ti,ads7845 SPI driver ads7846 has no spi_device_id for ti,ads7873 Signed-off-by: Sean Nyekjaer --- drivers/input/touchscreen/ads7846.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index d2bbb436a77d..30758fc0e029 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c @@ -1377,6 +1377,16 @@ static void ads7846_remove(struct spi_device *spi) ads7846_stop(ts); } +static const struct spi_device_id ads7846_spi_ids[] = { + { "tsc2046" }, + { "ads7843" }, + { "ads7845" }, + { "ads7846" }, + { "ads7873" }, + { }, +}; +MODULE_DEVICE_TABLE(spi, ads7846_spi_ids); + static struct spi_driver ads7846_driver = { .driver = { .name = "ads7846", @@ -1384,6 +1394,7 @@ static struct spi_driver ads7846_driver = { .pm = pm_sleep_ptr(&ads7846_pm), .of_match_table = ads7846_dt_ids, }, + .id_table = ads7846_spi_ids, .probe = ads7846_probe, .remove = ads7846_remove, };