Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp783093pxb; Tue, 5 Apr 2022 23:08:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH7Wr6TitVuJb/6afI7t5ZeyqXBHU/QVPHRZ7b+smWcWzrCCBuZCqZSiOiF9gk95+6g8uS X-Received: by 2002:aa7:8490:0:b0:4fa:a623:b036 with SMTP id u16-20020aa78490000000b004faa623b036mr7424026pfn.64.1649225307910; Tue, 05 Apr 2022 23:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649225307; cv=none; d=google.com; s=arc-20160816; b=kWyuh+ZFvIkNuu0QtkED85J5MCSL9iCVow7i8m0fnHwPit45LG+pvibQzbes0LoDS8 IgHITOYAwIPh28Auf8JpAynA8B6anxnbbpUD0+G13eXoOiHm1u85vdOjwlQzlI2ZDmdu sSxuJWVu+yABqtAdzAmWjgL6ZzgndclStiyMjY+PJiaOZyAnIDjkRDn/4eQTHsiRBciQ SLfHXWszpc/dUdAMO2Vyk9UP1f+f9wKPBeEUYOI2PQ6EVvMiH7AhW22osKvJGS7aNr0T X4faFy2VXFJBStrocCQznA2HPluUBwm7c4hdQaveOcx+R853EajhBvGomz5y7UcRP7BB dFmw== 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=HqCZS4vQdnPpt80A2vR6xFNxPKQX1YSLzm23+QhoYjs=; b=K7UaN/LxCCiOrySa28BidZHSdWFOOCZEaBnCHu50J8U4v4ZPCRHjuMRmmxgSSTX3mf K/dQ1/BxXt/VwEn2TmeGwRFBjL0hTnuSVjHd3koOepqGPfxVX3Iabj2OAWb3o5w671WP o6Eo+KgA8LVJN2b8b9WCzURuN3gW+0/lf83j8CsGNbvUT3V2tKQl/mpFg4W5tdULAvYh shhO/qH7Vb8k5GmH/VYknR2jjAK3q5Z3OGzBz4lCsOOAu4N1P1n0ihywSVGx8IAh975m yQxq4leS2ScfmHQTIuLOcDaZ3iQZJTv/HqhhszPULK/it3zfXjbNEVpPNGpV2UaZM8dB z7Fg== 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 h13-20020a056a00230d00b004fa7c4d3815si16164161pfh.73.2022.04.05.23.08.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 23:08:27 -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 933B44994B5; Tue, 5 Apr 2022 22:56:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839564AbiDFBE5 (ORCPT + 99 others); Tue, 5 Apr 2022 21:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572894AbiDERQE (ORCPT ); Tue, 5 Apr 2022 13:16:04 -0400 X-Greylist: delayed 12359 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 10:14:04 PDT Received: from 10.mo550.mail-out.ovh.net (10.mo550.mail-out.ovh.net [178.32.96.102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E243921AD for ; Tue, 5 Apr 2022 10:14:04 -0700 (PDT) Received: from player728.ha.ovh.net (unknown [10.108.1.13]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 7266224066 for ; Tue, 5 Apr 2022 16:37:58 +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 12A9D2918D61E; Tue, 5 Apr 2022 16:37:53 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-102R004cd3fc30c-2cb9-44a9-b250-9c495a8aa197, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Matthias Brugger , Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: mt6660: use simple i2c probe function Date: Tue, 5 Apr 2022 18:37:50 +0200 Message-Id: <20220405163750.2158916-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8099160983115957894 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgepfeenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejvdekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/mt6660.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/mt6660.c b/sound/soc/codecs/mt6660.c index 3a881523c30f..c84a0b850f89 100644 --- a/sound/soc/codecs/mt6660.c +++ b/sound/soc/codecs/mt6660.c @@ -456,8 +456,7 @@ static int _mt6660_read_chip_revision(struct mt6660_chip *chip) return 0; } -static int mt6660_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int mt6660_i2c_probe(struct i2c_client *client) { struct mt6660_chip *chip = NULL; int ret; @@ -567,7 +566,7 @@ static struct i2c_driver mt6660_i2c_driver = { .of_match_table = of_match_ptr(mt6660_of_id), .pm = &mt6660_dev_pm_ops, }, - .probe = mt6660_i2c_probe, + .probe_new = mt6660_i2c_probe, .remove = mt6660_i2c_remove, .id_table = mt6660_i2c_id, }; -- 2.27.0