Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp961454pxb; Wed, 6 Apr 2022 05:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhgJai60kfrcPfF7tyD/00rQSVcp+VevmmOAbuezEjMaS9ZnVwwIamKGvOymlbQsCd2VsX X-Received: by 2002:a17:902:dac1:b0:154:3d06:9c5b with SMTP id q1-20020a170902dac100b001543d069c5bmr8376387plx.93.1649247857042; Wed, 06 Apr 2022 05:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247857; cv=none; d=google.com; s=arc-20160816; b=hrOVpyXoErz6iCtyn0cPXO7GCAa54RmISkX6ZbY6lbNbAPAgss1ll34QOpJS+EN/Zs i8EEl4w+TOrTSqjwCgJDUGJ3j3xaQgJRWtIINs34AV6Vne5tCY6UD2ih2eTzr52aYuuI E9lz5PWQpJBa6481xAG3kkY56k5COW/qsg4HZ3ETV5THALhRQEwgQdb9DAuhgvgGXexk BwHjTBzpsLHF4kXg4GnRV2w1QjeYZM0rSgUL6UUAbUkb2/nVOCZfMpHJH0WvUTpABXCc xc7UgfjJ7cSCY7yxzMqfrznQbVrf6L0PUYdA5d/e9Z04hlm7JxaB2v3fYVEKleBjd0/8 OvLg== 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; bh=I9upSZ3f19gvrQ+oLjiN9phgNg9CQatNI5puDwH35Ak=; b=NEY7q9rVX5U4+D6hPsItRqf04zz0XArgvaUbIRiOp7SkAFNwjyCd3k/yMsqoF3da3X gPjswkWHWy/BtV2/OM83aJpyHehAG4DS1KJBupgnLP99LajnYIn2JGjouc9noqdbVdLu DQiggzO3UhOgvh4mcbskWJ2jC9+3LJHP5Rf+dc1WG8pYVPa7ccagE+XHLi99Why77Rqf /SEbLK7Ed7UrgWGPKQrIixIpkIERJQsCkfVpKGSEfmYwuPpi02irURcH8YscHAUGCihR UwIDxSjH6WAcdQzFTBB15PAWsTyQETu/UhXEVpSGFJB6A578wxTOmYuhrshGq8Wbw2Tc 5EWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d1-20020a170902854100b00153b2d16493si14714775plo.155.2022.04.06.05.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:24:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 F2F1B60A7BF; Wed, 6 Apr 2022 04:33:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840581AbiDFBLG (ORCPT + 99 others); Tue, 5 Apr 2022 21:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572917AbiDERUM (ORCPT ); Tue, 5 Apr 2022 13:20:12 -0400 Received: from 1.mo575.mail-out.ovh.net (1.mo575.mail-out.ovh.net [46.105.41.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCDA25DA for ; Tue, 5 Apr 2022 10:18:13 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.208.235]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id DACBB23379 for ; Tue, 5 Apr 2022 17:00:14 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player771.ha.ovh.net (Postfix) with ESMTPSA id 8B928293E38A0; Tue, 5 Apr 2022 17:00:09 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R0064c8ef375-8c61-4341-80ca-324eb6ce81b0, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH 11/14] ASoC: tda7419: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:33 +0200 Message-Id: <20220405165836.2165310-12-steve@sk2.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220405165836.2165310-1-steve@sk2.org> References: <20220405165836.2165310-1-steve@sk2.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8475211549089105542 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/tda7419.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tda7419.c b/sound/soc/codecs/tda7419.c index 83d220054c96..d964e5207569 100644 --- a/sound/soc/codecs/tda7419.c +++ b/sound/soc/codecs/tda7419.c @@ -571,8 +571,7 @@ static const struct snd_soc_component_driver tda7419_component_driver = { .num_dapm_routes = ARRAY_SIZE(tda7419_dapm_routes), }; -static int tda7419_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tda7419_probe(struct i2c_client *i2c) { struct tda7419_data *tda7419; int i, ret; @@ -630,7 +629,7 @@ static struct i2c_driver tda7419_driver = { .name = "tda7419", .of_match_table = tda7419_of_match, }, - .probe = tda7419_probe, + .probe_new = tda7419_probe, .id_table = tda7419_i2c_id, }; -- 2.27.0