Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1060167pxb; Wed, 6 Apr 2022 07:48:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5TgYAwBvPl48OoE9HV6XMJKJyG9zvl6H9X2WgHw6imtv+phebgeAlVtLbyRK6Y7a9k7xd X-Received: by 2002:a05:6a00:1943:b0:4cb:79c9:fa48 with SMTP id s3-20020a056a00194300b004cb79c9fa48mr9085079pfk.47.1649256534675; Wed, 06 Apr 2022 07:48:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649256534; cv=none; d=google.com; s=arc-20160816; b=OUglX/aHO9Bp/XIXUanTjub3cLZC53/Yfvn1iBmlgSM/jH/8rdAfROFHr51Q1jxuZ9 SPiZfTcNQSx4yzzYYqE+Xiddgrr0w463UUv1GcE8JTHd1xWMNYbQqF3nd1b3elrqY3At 8ah+AkhW3l76i2eV9SS6PHkiGU13LTh0gPecEND4mQl8DR7MOVi3zZt4tnBkYSkYjTIv WI7DKZFaz2AAdqLlp6dEkkkDET/vWqFnVslEBsB4iEbdevStJtRojq0os94dqjTEorp3 s2PFTtEmQ/SZJZJPXsFc9gU/0uhirZDVryd/Rxs2WUjrxYglNkxlflAG1Vj7/JAO08lq V+Sw== 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=0F92R+UiMa+ze7+SLb+zcmcIxXAgju4O6ADwNzLTc3c=; b=aD5mEGHqD01fIVf1XQWk64MYqWcUcAjDo0ysEAFBkHAitY5q0sjvRiS0nB4Tl1g0KB fL7F/TvPclJuF2gEJoJ2GULfGR0Yvp/z+/46EycQF6aFjkE7Rj6jbW4Ib28RdSBnH8UB ovOcHoI9HmDarzNFEUiT5Uk3FBai45wL/piCn7igm7S8mFP+ngiMSpPexhUsrL+VTIH1 5gZwlf5hAiY2sKPDruUNTiLa4mY20VlA0I7Bfm40Rtwqac9qYcM6vpqdrU1mF0poaCvY 04DHhBNeFjhfOdZCYJ+HZLh3Dv5qsWcUPtet1m2aSa0Zx7iUv+gfFpFfaj06U4Gh3s6J LrmA== 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 j12-20020a056a00130c00b004fa87436110si16918644pfu.35.2022.04.06.07.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:48:54 -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 9472357E26E; Wed, 6 Apr 2022 05:39:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240600AbiDEUhr (ORCPT + 99 others); Tue, 5 Apr 2022 16:37:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457977AbiDERCc (ORCPT ); Tue, 5 Apr 2022 13:02:32 -0400 Received: from 9.mo584.mail-out.ovh.net (9.mo584.mail-out.ovh.net [46.105.40.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC57B2E9C6 for ; Tue, 5 Apr 2022 10:00:32 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.1.181]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 183F62353B for ; Tue, 5 Apr 2022 17:00:31 +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 9880C293E39E0; Tue, 5 Apr 2022 17:00:25 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R0067464f05e-4097-4c7c-a65a-96236ca073ef, 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 14/14] ASoC: uda1380: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:36 +0200 Message-Id: <20220405165836.2165310-15-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: 8479715150873462406 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/uda1380.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c index 13060a9a2388..b5004842520b 100644 --- a/sound/soc/codecs/uda1380.c +++ b/sound/soc/codecs/uda1380.c @@ -739,8 +739,7 @@ static const struct snd_soc_component_driver soc_component_dev_uda1380 = { .non_legacy_dai_naming = 1, }; -static int uda1380_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int uda1380_i2c_probe(struct i2c_client *i2c) { struct uda1380_platform_data *pdata = i2c->dev.platform_data; struct uda1380_priv *uda1380; @@ -800,7 +799,7 @@ static struct i2c_driver uda1380_i2c_driver = { .name = "uda1380-codec", .of_match_table = uda1380_of_match, }, - .probe = uda1380_i2c_probe, + .probe_new = uda1380_i2c_probe, .id_table = uda1380_i2c_id, }; -- 2.27.0