Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp961760pxb; Wed, 6 Apr 2022 05:24:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxDkGdgnU7x5HnUtSt4Q9QBnsn8kGr/zTWuJncFjZ/tv15UpPdd76CuGNVde7lsQtPbopD X-Received: by 2002:a17:90a:c791:b0:1c7:26eb:88dd with SMTP id gn17-20020a17090ac79100b001c726eb88ddmr9623790pjb.218.1649247883860; Wed, 06 Apr 2022 05:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247883; cv=none; d=google.com; s=arc-20160816; b=ll9HJNBto/ITxV/hrruePxl8Dc+ISNcOnxC4VihMEThqoVIK+6GFpnGGtBoCpga70J bh8oZGBW77qu8D3JwgWQbOgws9eqXqAwBDvPAlAcaEKoCwvRQ5dvyqgicg5sZxdjOtO4 J1XyUc+WwZAVOhJFf65TDoXJblJkqKv7ziTWrbe27ESLSzBhkgfo0MsQHGCoDrDTqsp8 fI5asek1quU1UBgElSdbMoJkZlnAnEjVqRN0YlOB9D4xdBuNzWMTScXazQaF9i5PjhCf owlsN16Cb6TJGdPRiXVR7xnhy1JruvWw/l5ihmHiG8DodgfBGoYqYa4bk+eeIb0YaDj4 wiPA== 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=QcgeeKWN+Gyat0olpby+/kHLvyejwjz5JKUv1W9uhIs=; b=NiGLUBWE1lBki25Z25LWdYdFoMyDikQdmaTPRBq4fPfQVHvGRs2tyz830EtRYCOiWo 3fOrzansYI09Webv1pcLsLqcSTFkA93tRT/mVyeYBryvAfKGwj/mxqBI4c3sM9u1tyAW JE4R71TVw5Lbnp0pBNIuDz/MDryPo0EU5gIEUOlZgNqw9tLdrQDRX05LdWhwRAZszJit fHR1EWd3GIS9FHVxR2M01TBrHek6yb4LJzeYHGc4du09jtjBcsN+fPOl4W9URAhoIP/K DX9yqja8Djw7+OqkESy44W+um5cVgnQxoO2+cjNdZ07QKDcDeDaHXPGsUvnWlhofCG/3 rvOg== 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 b38-20020a631b26000000b003816043efacsi15107354pgb.417.2022.04.06.05.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:24:43 -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 1396B610909; Wed, 6 Apr 2022 04:34:20 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1454970AbiDEWjv (ORCPT + 99 others); Tue, 5 Apr 2022 18:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457961AbiDERBs (ORCPT ); Tue, 5 Apr 2022 13:01:48 -0400 Received: from 9.mo576.mail-out.ovh.net (9.mo576.mail-out.ovh.net [46.105.56.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BB667CDCD for ; Tue, 5 Apr 2022 09:59:49 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.109.156.77]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 2699123A28 for ; Tue, 5 Apr 2022 16:59:48 +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 B524C293E3734; Tue, 5 Apr 2022 16:59:42 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006cace6e1e-5535-4ebc-b9b4-33a127aeb55d, 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 06/14] ASoC: ml26124: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:28 +0200 Message-Id: <20220405165836.2165310-7-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: 8467893201618044550 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/ml26124.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/ml26124.c b/sound/soc/codecs/ml26124.c index 0823527e4a75..de8fcbdd85be 100644 --- a/sound/soc/codecs/ml26124.c +++ b/sound/soc/codecs/ml26124.c @@ -550,8 +550,7 @@ static const struct regmap_config ml26124_i2c_regmap = { .write_flag_mask = 0x01, }; -static int ml26124_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ml26124_i2c_probe(struct i2c_client *i2c) { struct ml26124_priv *priv; int ret; @@ -583,7 +582,7 @@ static struct i2c_driver ml26124_i2c_driver = { .driver = { .name = "ml26124", }, - .probe = ml26124_i2c_probe, + .probe_new = ml26124_i2c_probe, .id_table = ml26124_i2c_id, }; -- 2.27.0