Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1047078pxb; Wed, 6 Apr 2022 07:28:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPbUwHKGEXzSxEJgIDQM2gnSC6GxzyhldkcMzIeJSU1kM43tIoyP0geXki41ETFKY1GwOx X-Received: by 2002:a17:902:e74a:b0:153:f956:1cf5 with SMTP id p10-20020a170902e74a00b00153f9561cf5mr8572557plf.138.1649255333703; Wed, 06 Apr 2022 07:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649255333; cv=none; d=google.com; s=arc-20160816; b=0PVoA35o324SIshktOwR5NfatDEHPQL0Tq0bQYsd8VLkDPEnvzuWobg7Cu5gILy7bu cK4gVkEQypO/n+qLWjMTOMT/l6te4HIkoxhMxjfVdWY5NBHI/CkZBdp2oCUxUnBG+nG1 U9lXnniInVkXumPFyyHPCXnFfWV4DPdXYhRoIcRs9CsNBoAKkONSOR8lI9A6CxFXYOcK GSYQeNlE+s/K0QI83u2EnUxKw0BG/J90Z7xlRYb3SMyGPXrpokLDU+ciwMOXzfrkllkz 6xTP5QCrFRcxzD+eA7w15xSUc6cPbdNUsOGqyHdAihQT0SGAScRoD5E2xfd9z9GMQRzH rfFg== 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=iktXMZCOKcOMKG+ctLPUb1KuIK7GQx/ajrdDyYVqx4Q=; b=r3xPgwpyVJKBRQ0SLQp0vYku/tPM/C/PtjcaJX0JTbkQtfokaB5tPFdy9X9ZkzYfHM 7vCur/5xez3gNI52N4lXGDyZyxmELshrR5oBlY5qXZg9WmarBHiUBECXmBj+xeXFUA/S rnHcgOfZtbmqApyZMHtKVyr1Cxv0POwZor7e9IvRI+UJnRwlPk1FTx0sGZ9SoDEOnADx K8AWZK5zzMKv1/dkVUt4jvm2bwgoxVj/7k8wAVMr12PA0/CzH9SVPKbWGYVIdWUK8SkC 6LR66tqqijEMGClQ1ijdMGG5is4ScBKmrzORBCpDzCGUNn/fbjSDsmMDo1shktL0oBNr ZTwg== 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 r80-20020a632b53000000b0039cbe7475d2si337034pgr.49.2022.04.06.07.28.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 07:28:53 -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 B3AD159A175; Wed, 6 Apr 2022 05:33:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbiDEU3u (ORCPT + 99 others); Tue, 5 Apr 2022 16:29:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457952AbiDERB1 (ORCPT ); Tue, 5 Apr 2022 13:01:27 -0400 Received: from 14.mo582.mail-out.ovh.net (14.mo582.mail-out.ovh.net [46.105.56.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6561E65838 for ; Tue, 5 Apr 2022 09:59:28 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.16.30]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id BB1DE23A1E for ; Tue, 5 Apr 2022 16:59:26 +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 575A6293E3695; Tue, 5 Apr 2022 16:59:21 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006b3e2e77b-2407-4228-94bb-9a20ade0f9bf, 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 02/14] ASoC: cx2072x: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:24 +0200 Message-Id: <20220405165836.2165310-3-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: 8461700752417785478 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/cx2072x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index 1f5c57fab1d8..0d3a00434c6d 100644 --- a/sound/soc/codecs/cx2072x.c +++ b/sound/soc/codecs/cx2072x.c @@ -1626,8 +1626,7 @@ static int __maybe_unused cx2072x_runtime_resume(struct device *dev) return clk_prepare_enable(cx2072x->mclk); } -static int cx2072x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int cx2072x_i2c_probe(struct i2c_client *i2c) { struct cx2072x_priv *cx2072x; unsigned int ven_id, rev_id; @@ -1710,7 +1709,7 @@ static struct i2c_driver cx2072x_i2c_driver = { .acpi_match_table = ACPI_PTR(cx2072x_acpi_match), .pm = &cx2072x_runtime_pm, }, - .probe = cx2072x_i2c_probe, + .probe_new = cx2072x_i2c_probe, .remove = cx2072x_i2c_remove, .id_table = cx2072x_i2c_id, }; -- 2.27.0