Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp906277pxb; Wed, 6 Apr 2022 03:55:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPNSqBIa+aHO7r24WXlNYzG82gctQXAyllZMJLRE6laE/SoFYEhT3kOSCHjxRtxb+vGbHM X-Received: by 2002:a65:5b84:0:b0:398:fd62:6497 with SMTP id i4-20020a655b84000000b00398fd626497mr6494697pgr.179.1649242531317; Wed, 06 Apr 2022 03:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649242531; cv=none; d=google.com; s=arc-20160816; b=AIyU7H+1flN0k0eW/AVVZCnhSS+dwB2RtMKf0S/AFZ462RuowtUfn3jGQLqs06F/bq EldMLdNh2A1AFPELh0AVfaon2pWm2Tt4aTFpm0dg9mlZtB8uXur2I0Z8PYKRAHRD5MxK OpbmseSGp9R29Gb9gzhHp/f53PtOY/OyPzRMRcusa/rb2Px/TdSLW6Vs5Im8TgRlDWaj HDmCRQR1AXnKRhjgZGP8/BmF6M43NXM4U3ehTolPeP0AngqHHrtnQ0yFTGybz2+SyJit IztAKPnyWXiDMO6csAIyrraUYhUidgZW9D3qp+fW1nVgkjKTKWnLuEImkzamQfVGMLwC T57Q== 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=/MPF9QyA7qN6w2zkqgZ5a+hamq/VIQ7qd1r2qLyhnI4=; b=UeBHdQbtk5Ov27bV1qW0aYJ2B4bb6gd6ewX01hH+mq9rew1B4nnfJQYf3L5nV3n8kN eUmAq3/cYRVGHosWU9iKIUslVQMT5Ne/CEmKEDFVCDObKGVsiHXZsW+SyBCgaqLF4fXF ke+YMdjIcLOY52mNCuADdAxKmKT1fnEG9/YTks41U2sbQoyuOHJpAocyOHP2w+DekY5x kxKQmRXL2Lo4qIbxemTdVaEzeQJb9AgHTlrTyDO55YpYCnQXYXExDvJ6vGNweEABagw8 XX44w8fOj0pd4ijl0PFiAtcNMXlARHUvm8V1Sxln/pD0zjeUksIWZL+dJr7cMbJ8I2lQ wheg== 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 rj9-20020a17090b3e8900b001bf39192b2dsi4979090pjb.36.2022.04.06.03.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 03:55:31 -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 ED16D59DDC1; Wed, 6 Apr 2022 02:13:47 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1583099AbiDEXvM (ORCPT + 99 others); Tue, 5 Apr 2022 19:51:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1452904AbiDEPzl (ORCPT ); Tue, 5 Apr 2022 11:55:41 -0400 X-Greylist: delayed 8707 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 07:58:07 PDT Received: from 4.mo583.mail-out.ovh.net (4.mo583.mail-out.ovh.net [178.33.111.247]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3D2D371B for ; Tue, 5 Apr 2022 07:58:04 -0700 (PDT) Received: from player688.ha.ovh.net (unknown [10.111.172.22]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 0B28224B9A for ; Tue, 5 Apr 2022 12:32:58 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player688.ha.ovh.net (Postfix) with ESMTPSA id 7DBA2291068A7; Tue, 5 Apr 2022 12:32:52 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-103G00552102515-f355-46c0-857e-560b28840b63, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Liam Girdwood , Mark Brown Cc: patches@opensource.cirrus.com, Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: wm8731: use simple i2c probe function Date: Tue, 5 Apr 2022 14:32:36 +0200 Message-Id: <20220405123236.2099063-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 3961197347742844550 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedggeelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrheikeekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/wm8731.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c index 5d4949c2ec9b..c430f169eb24 100644 --- a/sound/soc/codecs/wm8731.c +++ b/sound/soc/codecs/wm8731.c @@ -723,8 +723,7 @@ static struct spi_driver wm8731_spi_driver = { #endif /* CONFIG_SPI_MASTER */ #if IS_ENABLED(CONFIG_I2C) -static int wm8731_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int wm8731_i2c_probe(struct i2c_client *i2c) { struct wm8731_priv *wm8731; int ret; @@ -788,7 +787,7 @@ static struct i2c_driver wm8731_i2c_driver = { .name = "wm8731", .of_match_table = wm8731_of_match, }, - .probe = wm8731_i2c_probe, + .probe_new = wm8731_i2c_probe, .id_table = wm8731_i2c_id, }; #endif -- 2.27.0