Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp934567pxb; Wed, 6 Apr 2022 04:44:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD48p/bWBmHqLs8s/uhaye8DB0GYSN9Hm/u1tVfwSvwY56QC+X5R+iFMxVOH2wsT8zRkGz X-Received: by 2002:a17:90a:c28c:b0:1c9:9eef:6e2b with SMTP id f12-20020a17090ac28c00b001c99eef6e2bmr9410906pjt.188.1649245478571; Wed, 06 Apr 2022 04:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649245478; cv=none; d=google.com; s=arc-20160816; b=Hf/PNQxVCoed/ZezIvS/zUsI1gVk7EJo/5/MB+GJhMDaOQ6TJAFlLKIQ28IjmT8EpE cD74aa2tRP+EdsoJZdb+3gEWog7eQioR2Z8+HphHnuD7ToNtKltLG1PU9r3c7BUotjy9 1suQPZLflWt09iHTRhX5ifPbhBAz/AELWFfg3KjJvPk70FzH7hr61NRPx3TxliWYDwix RygmwXdFYBc/P3qLkZwEfS64deinqHAUpZ3u5VTN6Gw4W3K4nMHPFvhE6Ts+zbCOY+CY iCJjXVB7av4xXGlfdOAIQF1k1TzZANunrjUc0hMXd70GeUf58aVluaPhu2J8Q8LrlBHE 2JDw== 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; bh=4/+lSH9Zv1XZcWgBJ1pjktdB/8Y9cWIXaYYDECy3ZQY=; b=rNA4zyUZaqpcIMW/h+Sb3qz+zSCF5g62DFtn1lWZuEeZnAOZdQm1KLhZjnX4jqL+OE Gn+lOWZhs/HnYKrpOJmFqryyEd+H+FSD+5CyTC9CxKonEDjJCxDeNDWNomSbfF5J28Wr Z/Ws5VT8WikWuUy58Y8rEMUWC4BJ7CAplVL4MgpEEJUrlu9a6Vcb9daFPiMYmEBSZ/kS z95NGdhLtl/hi0kkUyE5MS34reQSlWAfESvqi5pU+oPznscJXCs9H7y8WVTIqQFnVYzu Noz2wvLLBEWUVtRcUEUBjqB0D5D3XwJ+wDnSaUYlDiMRVqdtqLM+wPkDmPR/ehH84vNc Ih/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id my1-20020a17090b4c8100b001c6c8e19f0csi5344547pjb.98.2022.04.06.04.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:44:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C273661F46F; Wed, 6 Apr 2022 03:01:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239575AbiDEXEk (ORCPT + 99 others); Tue, 5 Apr 2022 19:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457700AbiDEQgS (ORCPT ); Tue, 5 Apr 2022 12:36:18 -0400 X-Greylist: delayed 13570 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 09:34:18 PDT Received: from 7.mo583.mail-out.ovh.net (7.mo583.mail-out.ovh.net [178.32.124.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75B5065D3A for ; Tue, 5 Apr 2022 09:34:16 -0700 (PDT) Received: from player728.ha.ovh.net (unknown [10.111.208.112]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 70E2722CEB for ; Tue, 5 Apr 2022 16:34:15 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player728.ha.ovh.net (Postfix) with ESMTPSA id 53C7D2918CC09; Tue, 5 Apr 2022 16:34:04 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R00216734794-6a76-4f86-9128-4ef53b3b435f, 8BB3F008109FF1ACF458F8D30695C50246D29715) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Steven Eckhoff , Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: tscs*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:34:00 +0200 Message-Id: <20220405163400.2156631-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8036392060513846918 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejvdekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 The i2c probe functions here don't use the id information provided in their second argument, so the single-parameter i2c probe function ("probe_new") can be used instead. This avoids scanning the identifier tables during probes. Signed-off-by: Stephen Kitt --- sound/soc/codecs/tscs42xx.c | 5 ++--- sound/soc/codecs/tscs454.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/tscs42xx.c b/sound/soc/codecs/tscs42xx.c index 5b63e017a43b..4fb0bb01bcdc 100644 --- a/sound/soc/codecs/tscs42xx.c +++ b/sound/soc/codecs/tscs42xx.c @@ -1409,8 +1409,7 @@ static const struct reg_sequence tscs42xx_patch[] = { static char const * const src_names[TSCS42XX_PLL_SRC_CNT] = { "xtal", "mclk1", "mclk2"}; -static int tscs42xx_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tscs42xx_i2c_probe(struct i2c_client *i2c) { struct tscs42xx *tscs42xx; int src; @@ -1505,7 +1504,7 @@ static struct i2c_driver tscs42xx_i2c_driver = { .name = "tscs42xx", .of_match_table = tscs42xx_of_match, }, - .probe = tscs42xx_i2c_probe, + .probe_new = tscs42xx_i2c_probe, .id_table = tscs42xx_i2c_id, }; diff --git a/sound/soc/codecs/tscs454.c b/sound/soc/codecs/tscs454.c index 7e1826d6f06f..b34a8b516484 100644 --- a/sound/soc/codecs/tscs454.c +++ b/sound/soc/codecs/tscs454.c @@ -3400,8 +3400,7 @@ static struct snd_soc_dai_driver tscs454_dais[] = { static char const * const src_names[] = { "xtal", "mclk1", "mclk2", "bclk"}; -static int tscs454_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tscs454_i2c_probe(struct i2c_client *i2c) { struct tscs454 *tscs454; int src; @@ -3474,7 +3473,7 @@ static struct i2c_driver tscs454_i2c_driver = { .name = "tscs454", .of_match_table = tscs454_of_match, }, - .probe = tscs454_i2c_probe, + .probe_new = tscs454_i2c_probe, .id_table = tscs454_i2c_id, }; -- 2.27.0