Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp946127pxb; Wed, 6 Apr 2022 05:03:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8NDInQJjhjYRpngJreF4omYV14M5iN0IvZtRzw4nOCPue7JKYzSpDlWlvIlAsSZgNTCKW X-Received: by 2002:a17:902:dac2:b0:156:a6b5:80ce with SMTP id q2-20020a170902dac200b00156a6b580cemr8216851plx.0.1649246585180; Wed, 06 Apr 2022 05:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246585; cv=none; d=google.com; s=arc-20160816; b=UGd3Mj3ZUjD+bVSMEUmc9Hety+yHjiSiwhn1v9DNLXsCMt30Km/H6SuMlhCQMA+BL9 M1suyIFqyfcfgZvuZVkDWOiRupMAY8KCI6jpqBj8OezajHVevuGBe84zt7gKsxXiyKD7 hFwjfHNFklQW/DvPAIXsd1FukSX7lnxWjAdu/g4z5FyYwX9S7yrkGFgQxAOPkJCr3UsT PDVt2EJJ0eBzanLHr5AmC/zp1H04eCPQSi7TQPRa/iYKxaiZ9K4zCdpCEvbgigcW5no6 I64GT9MB/MB/lI8D7onJ8wSnTwAYUDMs43jFXwDrAU8xVriAI+jamvuFrLhi/6B9FTqX vGGQ== 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=A0uvzD+w/BqtbGol5KHFxPZTmUx0GZoZseWMWB4OjiI=; b=gfW3UO6/IVYppqJ30arAbAEcE2VWVB+aARkPtVaWcwejVUYbypUgmx2t3qE54vNZr6 wNENCo0ZUR4YycbBlZPW8d/eL7F2obkUJwJxv0B61QSKhkrTYGMkhiuvWkTuDWCsrFz8 LjAClJqwXyOXrS4W3/sAa5CaXny5J+JF/czRgNx5qjygc8/Yp4QBPRG6kjHVQLaUt+8E oWjbwZQwdUtezDEIAnFIS+XcC0QF14khYbRtyibHYJO1Gr6/pmjjmwU2XYNDnU8aqRS5 DT3P3rX5xabKhoYbTHdjsrGblUnbz7xUExA2Rl25oPQafzHbLrSPaffrmJLdFVyUnuK9 1caQ== 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 d4-20020a170902cec400b00156ef408753si466699plg.238.2022.04.06.05.03.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:03:05 -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 E22276715A8; Wed, 6 Apr 2022 03:29:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1836350AbiDFAfx (ORCPT + 99 others); Tue, 5 Apr 2022 20:35:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457742AbiDEQi2 (ORCPT ); Tue, 5 Apr 2022 12:38:28 -0400 Received: from 20.mo582.mail-out.ovh.net (20.mo582.mail-out.ovh.net [178.32.124.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9E67D3737 for ; Tue, 5 Apr 2022 09:36:29 -0700 (PDT) Received: from player696.ha.ovh.net (unknown [10.108.1.191]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id 413FE23E49 for ; Tue, 5 Apr 2022 16:36:28 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player696.ha.ovh.net (Postfix) with ESMTPSA id DB1AA1EFDEA11; Tue, 5 Apr 2022 16:36:22 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-103G005435116ba-5cdd-4ff3-a179-c77177e0e200, 8AF55017BACD44284FC599BC4826E0280D36FCC4) smtp.auth=steve@sk2.org X-OVh-ClientIp: 82.65.25.201 From: Stephen Kitt To: Kirill Marinushkin , Liam Girdwood , Mark Brown Cc: Wolfram Sang , linux-kernel@vger.kernel.org, Stephen Kitt Subject: [PATCH] ASoC: pcm3060: use simple i2c probe function Date: Tue, 5 Apr 2022 18:36:18 +0200 Message-Id: <20220405163618.2158090-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 8073828232917059206 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefuthgvphhhvghnucfmihhtthcuoehsthgvvhgvsehskhdvrdhorhhgqeenucggtffrrghtthgvrhhnpeetgedugfelkeeikeetgeegteevfeeufeetuefgudeiiedthfehtdeffeekvdeffeenucfkpheptddrtddrtddrtddpkedvrdeihedrvdehrddvtddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrheileeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepshhtvghvvgesshhkvddrohhrghdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrgh 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/pcm3060-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/pcm3060-i2c.c b/sound/soc/codecs/pcm3060-i2c.c index abcdeb922201..2388098eeca3 100644 --- a/sound/soc/codecs/pcm3060-i2c.c +++ b/sound/soc/codecs/pcm3060-i2c.c @@ -10,8 +10,7 @@ #include "pcm3060.h" -static int pcm3060_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int pcm3060_i2c_probe(struct i2c_client *i2c) { struct pcm3060_priv *priv; @@ -50,7 +49,7 @@ static struct i2c_driver pcm3060_i2c_driver = { #endif /* CONFIG_OF */ }, .id_table = pcm3060_i2c_id, - .probe = pcm3060_i2c_probe, + .probe_new = pcm3060_i2c_probe, }; module_i2c_driver(pcm3060_i2c_driver); -- 2.27.0