Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp822055pxb; Wed, 6 Apr 2022 00:46:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydFXFp0VghHf2T+UQlzpjWP0ifL2dMqE7lTv5pBsZ++yQTS2GnHEMU8/FVrDmoCqI8kdDj X-Received: by 2002:a17:902:8ec4:b0:156:b8a6:f9d8 with SMTP id x4-20020a1709028ec400b00156b8a6f9d8mr7611179plo.122.1649231163627; Wed, 06 Apr 2022 00:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649231163; cv=none; d=google.com; s=arc-20160816; b=SbNEl89/jfoxXzgfPpcfJfzkqlhPk9cLIxdJg4Ecxs6gujMBoD9CDeJd0ZEh7Wx0jg JARJpp+4uo/f02w2dB+aT3PG/Wkuy4ICs8fUPj4bK75Cz+qerwq0RO+565PMFKhKnbs8 uXLdLDi2Nbju/5PJC5BnHn2W38bLXpW1oaDlwthyrz4y1TTh/yBxjQRnr8Vl6fC+PFZu 5buR7VoWiLwQ5cyUD1WbEaieo1tPtcVwcIbReZxytM7C6G7FnRsE96p3+yi3FApJBcTW mzbP5e5ku5EPt8kqqFn8SO4S6iclUD7LrJbi4JSK29PxckFxrjaAGvjetmT+zs6J9sOS YIrQ== 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=n5f/YhAqioBeXlfUCvnQzOMXnF1M3emsH3CXCGIt+Xo=; b=kn5MxPQnSdoVmd99UFzMCq/B4dhjgBMcQzTjixKaCH/X/wBhth/2JDwpVOHkGAX5jB xf01IutGInppNwRyl9lBkfNy5DCRXVJu9VhuF+pbYhqVNnDzlDlGV3qfA0VFhV5MmmcO CcKR1eovuGh6flVhwjaTIIlEHSUqFsjccYeOymlGyAqQqeM1k8jun1ytF0X/xreXxqO3 sE20ztkLLovwt2Ivc0ruJurQHaJuAC2Q2tLkUz3C6oKoCF33jD6cXOiNMU4IZbTy3NjP etNlKuoHD9QxJTfJO8gMlMJT7vh6rV76oqUI8Wyz9dlfgbND9Wm4uL8XN9efCdF3qMkf 5yUw== 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 i18-20020a170902c95200b00155c6577751si16838094pla.33.2022.04.06.00.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 00:46:03 -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 4559750BB5D; Wed, 6 Apr 2022 00:14:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240201AbiDEWZO (ORCPT + 99 others); Tue, 5 Apr 2022 18:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458147AbiDERKT (ORCPT ); Tue, 5 Apr 2022 13:10:19 -0400 Received: from 8.mo576.mail-out.ovh.net (8.mo576.mail-out.ovh.net [46.105.56.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E523652E2A for ; Tue, 5 Apr 2022 10:08:18 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.172.14]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 2263623D36 for ; Tue, 5 Apr 2022 16:59:32 +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 C1050293E36B7; Tue, 5 Apr 2022 16:59:26 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R00643b1e07f-95df-4e95-9a98-f3cede4a735b, 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 03/14] ASoC: es83*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:25 +0200 Message-Id: <20220405165836.2165310-4-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: 8463108128444155526 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg 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/es8316.c | 5 ++--- sound/soc/codecs/es8328-i2c.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c index ff33eab6f9de..4407166bb338 100644 --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c @@ -789,8 +789,7 @@ static const struct regmap_config es8316_regmap = { .cache_type = REGCACHE_RBTREE, }; -static int es8316_i2c_probe(struct i2c_client *i2c_client, - const struct i2c_device_id *id) +static int es8316_i2c_probe(struct i2c_client *i2c_client) { struct device *dev = &i2c_client->dev; struct es8316_priv *es8316; @@ -852,7 +851,7 @@ static struct i2c_driver es8316_i2c_driver = { .acpi_match_table = ACPI_PTR(es8316_acpi_match), .of_match_table = of_match_ptr(es8316_of_match), }, - .probe = es8316_i2c_probe, + .probe_new = es8316_i2c_probe, .id_table = es8316_i2c_id, }; module_i2c_driver(es8316_i2c_driver); diff --git a/sound/soc/codecs/es8328-i2c.c b/sound/soc/codecs/es8328-i2c.c index 6b0df0d750dc..68072e99fcc7 100644 --- a/sound/soc/codecs/es8328-i2c.c +++ b/sound/soc/codecs/es8328-i2c.c @@ -29,8 +29,7 @@ static const struct of_device_id es8328_of_match[] = { }; MODULE_DEVICE_TABLE(of, es8328_of_match); -static int es8328_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int es8328_i2c_probe(struct i2c_client *i2c) { return es8328_probe(&i2c->dev, devm_regmap_init_i2c(i2c, &es8328_regmap_config)); @@ -41,7 +40,7 @@ static struct i2c_driver es8328_i2c_driver = { .name = "es8328", .of_match_table = es8328_of_match, }, - .probe = es8328_i2c_probe, + .probe_new = es8328_i2c_probe, .id_table = es8328_id, }; -- 2.27.0