Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp944186pxb; Wed, 6 Apr 2022 05:01:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBzP3uVucR/ISh6T80crLHFULc9U1XT24ge9pQnHWtKCmcqWlydP7pH4MVls9ZnVnQpmAS X-Received: by 2002:a17:902:d2c7:b0:154:5aa1:a55b with SMTP id n7-20020a170902d2c700b001545aa1a55bmr8289715plc.5.1649246472355; Wed, 06 Apr 2022 05:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246472; cv=none; d=google.com; s=arc-20160816; b=ItNQBxigSc0td/fHIFQitlDz8wkOuV4DWsL8T+WIKMN71hJdOAsc/imC3s2j9V2uQu v3hmwWEywo+x5bknjuEgkeMAN/cV+aC1jubAIpBw2QuylRpiGDiPsUXYSS5dT6l3J3yo cvV4VYsFd6GkKSrk5aU0Fy31p6BuV9Bm/egB0Jl2q5cm8gWHYRe2w9a7FbtAA4I4DEfp Zd0jo08irmFQao6rjkomPmeQ+1oK/04tpMFejmQza2WPmh2024c4F4iCMWsKrul8CSNn wu2gneI3b7QqTb+z7nh5xMnZTIlgxsm+cbH+BBmsngUsQ3lUN4HTz+c+M+ta/VID/jpT Pquw== 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=QOUNOF0e2WUpjJ3+Mf0jq9MEsxbnN41E/Ou7p4Im72o=; b=aNmgj1qWeNpciBnbDh3ykzLe1w3oJ3I/iKlQOvS8WZlMqt2f+gYYIDawehKDaX8ic9 pltLC4rbaVWNNBr0OyYJmggz9fjoZetT0/LNPtdbqwztXWNeFpdtC6yykDvelGDMpNJe R7gUPXrYWHa5giNdUMqiGNVcaLxguoGudSejWKMxH387oT7O5RlBq/A6c8jtgdTHLEr2 ycMuGcFVkVU1CusB/mEZ8DYihoaH0yGiB1yH2b4Wj/hBMFU1BN9kntxvfzIBK1hSg/hh V0GQPoojDx9cqiMekgIzdmK6qoW4Yg7mwHzd4kqPAwCggxTed9Ad88+Rl5K8+BAuQCrn qRww== 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 s14-20020a170902a50e00b00156b4ee3bd6si6870227plq.354.2022.04.06.05.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:01:12 -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 A4366666EDC; Wed, 6 Apr 2022 03:24:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1456450AbiDEWp5 (ORCPT + 99 others); Tue, 5 Apr 2022 18:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572991AbiDERm0 (ORCPT ); Tue, 5 Apr 2022 13:42:26 -0400 Received: from 1.mo560.mail-out.ovh.net (1.mo560.mail-out.ovh.net [46.105.63.121]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE597B91A9 for ; Tue, 5 Apr 2022 10:40:27 -0700 (PDT) Received: from player691.ha.ovh.net (unknown [10.108.4.183]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 9372423A32 for ; Tue, 5 Apr 2022 17:40:26 +0000 (UTC) Received: from sk2.org (82-65-25-201.subs.proxad.net [82.65.25.201]) (Authenticated sender: steve@sk2.org) by player691.ha.ovh.net (Postfix) with ESMTPSA id 271F5293C8F1F; Tue, 5 Apr 2022 17:40:21 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-101G004618b8f4f-e2e9-40cb-b8ab-e15530b48acd, 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 v2] ASoC: wm8731: use simple i2c probe function Date: Tue, 5 Apr 2022 19:39:52 +0200 Message-Id: <20220405173952.2180743-1-steve@sk2.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 9154129193012921990 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedgudduvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepteegudfgleekieekteeggeetveefueefteeugfduieeitdfhhedtfeefkedvfeefnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrieeluddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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 --- Changes since v1: - rebased on sound/for-next instead of v5.18-rc1 --- sound/soc/codecs/wm8731-i2c.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/wm8731-i2c.c b/sound/soc/codecs/wm8731-i2c.c index c70f5db891e7..fdf03bf91606 100644 --- a/sound/soc/codecs/wm8731-i2c.c +++ b/sound/soc/codecs/wm8731-i2c.c @@ -23,8 +23,7 @@ static const struct of_device_id wm8731_of_match[] = { }; MODULE_DEVICE_TABLE(of, wm8731_of_match); -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; @@ -58,7 +57,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, }; base-commit: b66751b6e3591eafe5c9cbabd68a45731b0083e3 -- 2.27.0