From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 011A9C4332F for ; Tue, 5 Apr 2022 22:09:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391247AbiDEWFD (ORCPT ); Tue, 5 Apr 2022 18:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457950AbiDERBW (ORCPT ); Tue, 5 Apr 2022 13:01:22 -0400 Received: from 6.mo560.mail-out.ovh.net (6.mo560.mail-out.ovh.net [87.98.165.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6493A51E46 for ; Tue, 5 Apr 2022 09:59:23 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.109.156.133]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 58ADD23B90 for ; Tue, 5 Apr 2022 16:59:21 +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 F24EE293E366C; Tue, 5 Apr 2022 16:59:15 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R0069cd6cc63-6d12-4d77-a5d0-44e51e431b9e, 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 01/14] ASoC: ak4*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:23 +0200 Message-Id: <20220405165836.2165310-2-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: quoted-printable X-Ovh-Tracer-Id: 8460293375399265926 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/ak4118.c | 5 ++--- sound/soc/codecs/ak4535.c | 5 ++--- sound/soc/codecs/ak4641.c | 5 ++--- sound/soc/codecs/ak4671.c | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/sound/soc/codecs/ak4118.c b/sound/soc/codecs/ak4118.c index 2e6bafd2a821..5c4a78c16733 100644 --- a/sound/soc/codecs/ak4118.c +++ b/sound/soc/codecs/ak4118.c @@ -356,8 +356,7 @@ static const struct regmap_config ak4118_regmap =3D { .max_register =3D AK4118_REG_MAX - 1, }; =20 -static int ak4118_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ak4118_i2c_probe(struct i2c_client *i2c) { struct ak4118_priv *ak4118; int ret; @@ -416,7 +415,7 @@ static struct i2c_driver ak4118_i2c_driver =3D { .of_match_table =3D of_match_ptr(ak4118_of_match), }, .id_table =3D ak4118_id_table, - .probe =3D ak4118_i2c_probe, + .probe_new =3D ak4118_i2c_probe, }; =20 module_i2c_driver(ak4118_i2c_driver); diff --git a/sound/soc/codecs/ak4535.c b/sound/soc/codecs/ak4535.c index 91e7a57c43da..cc803e730c6e 100644 --- a/sound/soc/codecs/ak4535.c +++ b/sound/soc/codecs/ak4535.c @@ -405,8 +405,7 @@ static const struct snd_soc_component_driver soc_compon= ent_dev_ak4535 =3D { .non_legacy_dai_naming =3D 1, }; =20 -static int ak4535_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ak4535_i2c_probe(struct i2c_client *i2c) { struct ak4535_priv *ak4535; int ret; @@ -441,7 +440,7 @@ static struct i2c_driver ak4535_i2c_driver =3D { .driver =3D { .name =3D "ak4535", }, - .probe =3D ak4535_i2c_probe, + .probe_new =3D ak4535_i2c_probe, .id_table =3D ak4535_i2c_id, }; =20 diff --git a/sound/soc/codecs/ak4641.c b/sound/soc/codecs/ak4641.c index 04aef0e72aa5..d8d9cc712d67 100644 --- a/sound/soc/codecs/ak4641.c +++ b/sound/soc/codecs/ak4641.c @@ -548,8 +548,7 @@ static const struct regmap_config ak4641_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int ak4641_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ak4641_i2c_probe(struct i2c_client *i2c) { struct ak4641_platform_data *pdata =3D i2c->dev.platform_data; struct ak4641_priv *ak4641; @@ -632,7 +631,7 @@ static struct i2c_driver ak4641_i2c_driver =3D { .driver =3D { .name =3D "ak4641", }, - .probe =3D ak4641_i2c_probe, + .probe_new =3D ak4641_i2c_probe, .remove =3D ak4641_i2c_remove, .id_table =3D ak4641_i2c_id, }; diff --git a/sound/soc/codecs/ak4671.c b/sound/soc/codecs/ak4671.c index e9d1251c4265..60edcbe56014 100644 --- a/sound/soc/codecs/ak4671.c +++ b/sound/soc/codecs/ak4671.c @@ -629,8 +629,7 @@ static const struct regmap_config ak4671_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int ak4671_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int ak4671_i2c_probe(struct i2c_client *client) { struct regmap *regmap; int ret; @@ -657,7 +656,7 @@ static struct i2c_driver ak4671_i2c_driver =3D { .driver =3D { .name =3D "ak4671-codec", }, - .probe =3D ak4671_i2c_probe, + .probe_new =3D ak4671_i2c_probe, .id_table =3D ak4671_i2c_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92817C4332F for ; Tue, 5 Apr 2022 20:28:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231625AbiDEUaA (ORCPT ); Tue, 5 Apr 2022 16:30:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457952AbiDERB1 (ORCPT ); Tue, 5 Apr 2022 13:01:27 -0400 Received: from 14.mo582.mail-out.ovh.net (14.mo582.mail-out.ovh.net [46.105.56.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6561E65838 for ; Tue, 5 Apr 2022 09:59:28 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.16.30]) by mo582.mail-out.ovh.net (Postfix) with ESMTP id BB1DE23A1E for ; Tue, 5 Apr 2022 16:59:26 +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 575A6293E3695; Tue, 5 Apr 2022 16:59:21 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006b3e2e77b-2407-4228-94bb-9a20ade0f9bf, 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 02/14] ASoC: cx2072x: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:24 +0200 Message-Id: <20220405165836.2165310-3-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: quoted-printable X-Ovh-Tracer-Id: 8461700752417785478 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/cx2072x.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cx2072x.c b/sound/soc/codecs/cx2072x.c index 1f5c57fab1d8..0d3a00434c6d 100644 --- a/sound/soc/codecs/cx2072x.c +++ b/sound/soc/codecs/cx2072x.c @@ -1626,8 +1626,7 @@ static int __maybe_unused cx2072x_runtime_resume(stru= ct device *dev) return clk_prepare_enable(cx2072x->mclk); } =20 -static int cx2072x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int cx2072x_i2c_probe(struct i2c_client *i2c) { struct cx2072x_priv *cx2072x; unsigned int ven_id, rev_id; @@ -1710,7 +1709,7 @@ static struct i2c_driver cx2072x_i2c_driver =3D { .acpi_match_table =3D ACPI_PTR(cx2072x_acpi_match), .pm =3D &cx2072x_runtime_pm, }, - .probe =3D cx2072x_i2c_probe, + .probe_new =3D cx2072x_i2c_probe, .remove =3D cx2072x_i2c_remove, .id_table =3D cx2072x_i2c_id, }; --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D03DC35294 for ; Tue, 5 Apr 2022 22:31:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232003AbiDEWZU (ORCPT ); Tue, 5 Apr 2022 18:25:20 -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: quoted-printable X-Ovh-Tracer-Id: 8463108128444155526 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -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 =3D &i2c_client->dev; struct es8316_priv *es8316; @@ -852,7 +851,7 @@ static struct i2c_driver es8316_i2c_driver =3D { .acpi_match_table =3D ACPI_PTR(es8316_acpi_match), .of_match_table =3D of_match_ptr(es8316_of_match), }, - .probe =3D es8316_i2c_probe, + .probe_new =3D es8316_i2c_probe, .id_table =3D 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[] =3D { }; MODULE_DEVICE_TABLE(of, es8328_of_match); =20 -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 =3D { .name =3D "es8328", .of_match_table =3D es8328_of_match, }, - .probe =3D es8328_i2c_probe, + .probe_new =3D es8328_i2c_probe, .id_table =3D es8328_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0A9DC47081 for ; Tue, 5 Apr 2022 22:09:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391725AbiDEWII (ORCPT ); Tue, 5 Apr 2022 18:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457955AbiDERBh (ORCPT ); Tue, 5 Apr 2022 13:01:37 -0400 Received: from 7.mo575.mail-out.ovh.net (7.mo575.mail-out.ovh.net [46.105.63.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D8678900 for ; Tue, 5 Apr 2022 09:59:38 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.20.113]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 5AA1A222DF for ; Tue, 5 Apr 2022 16:59:37 +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 130DE293E36D4; Tue, 5 Apr 2022 16:59:32 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006684d1db8-587c-4aa8-aced-ea8bd21a0cfc, 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 04/14] ASoC: lm4857: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:26 +0200 Message-Id: <20220405165836.2165310-5-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: quoted-printable X-Ovh-Tracer-Id: 8464796978746656390 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/lm4857.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/lm4857.c b/sound/soc/codecs/lm4857.c index 300b325e2fdd..dba161305de8 100644 --- a/sound/soc/codecs/lm4857.c +++ b/sound/soc/codecs/lm4857.c @@ -115,8 +115,7 @@ static const struct regmap_config lm4857_regmap_config = =3D { .num_reg_defaults =3D ARRAY_SIZE(lm4857_default_regs), }; =20 -static int lm4857_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int lm4857_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; =20 @@ -138,7 +137,7 @@ static struct i2c_driver lm4857_i2c_driver =3D { .driver =3D { .name =3D "lm4857", }, - .probe =3D lm4857_i2c_probe, + .probe_new =3D lm4857_i2c_probe, .id_table =3D lm4857_i2c_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 850ECC433EF for ; Tue, 5 Apr 2022 21:14:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355207AbiDEVKw (ORCPT ); Tue, 5 Apr 2022 17:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458145AbiDERKR (ORCPT ); Tue, 5 Apr 2022 13:10:17 -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 17E0F6D1A2 for ; Tue, 5 Apr 2022 10:08:14 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.1.181]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id AFA6E23D5E for ; Tue, 5 Apr 2022 16:59:42 +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 593F3293E36F1; Tue, 5 Apr 2022 16:59:37 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006674b4758-f566-458a-9f6a-2a4a5c2e66b3, 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 05/14] ASoC: max9*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:27 +0200 Message-Id: <20220405165836.2165310-6-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: quoted-printable X-Ovh-Tracer-Id: 8466204352922355334 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeefnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/max9768.c | 5 ++--- sound/soc/codecs/max98371.c | 5 ++--- sound/soc/codecs/max98373-i2c.c | 5 ++--- sound/soc/codecs/max98390.c | 5 ++--- sound/soc/codecs/max9850.c | 5 ++--- sound/soc/codecs/max98504.c | 5 ++--- sound/soc/codecs/max98520.c | 4 ++-- sound/soc/codecs/max9867.c | 5 ++--- sound/soc/codecs/max9877.c | 5 ++--- sound/soc/codecs/max98925.c | 5 ++--- sound/soc/codecs/max98926.c | 5 ++--- sound/soc/codecs/max98927.c | 5 ++--- 12 files changed, 24 insertions(+), 35 deletions(-) diff --git a/sound/soc/codecs/max9768.c b/sound/soc/codecs/max9768.c index 39dda1b03b3d..d711eb1da0a8 100644 --- a/sound/soc/codecs/max9768.c +++ b/sound/soc/codecs/max9768.c @@ -167,8 +167,7 @@ static const struct regmap_config max9768_i2c_regmap_co= nfig =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max9768_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max9768_i2c_probe(struct i2c_client *client) { struct max9768 *max9768; struct max9768_pdata *pdata =3D client->dev.platform_data; @@ -215,7 +214,7 @@ static struct i2c_driver max9768_i2c_driver =3D { .driver =3D { .name =3D "max9768", }, - .probe =3D max9768_i2c_probe, + .probe_new =3D max9768_i2c_probe, .id_table =3D max9768_i2c_id, }; module_i2c_driver(max9768_i2c_driver); diff --git a/sound/soc/codecs/max98371.c b/sound/soc/codecs/max98371.c index 8d42f523e420..800f2bca6a0f 100644 --- a/sound/soc/codecs/max98371.c +++ b/sound/soc/codecs/max98371.c @@ -365,8 +365,7 @@ static const struct regmap_config max98371_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max98371_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98371_i2c_probe(struct i2c_client *i2c) { struct max98371_priv *max98371; int ret, reg; @@ -421,7 +420,7 @@ static struct i2c_driver max98371_i2c_driver =3D { .name =3D "max98371", .of_match_table =3D of_match_ptr(max98371_of_match), }, - .probe =3D max98371_i2c_probe, + .probe_new =3D max98371_i2c_probe, .id_table =3D max98371_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98373-i2c.c b/sound/soc/codecs/max98373-i2= c.c index ddb6436835d7..4fe065ece17c 100644 --- a/sound/soc/codecs/max98373-i2c.c +++ b/sound/soc/codecs/max98373-i2c.c @@ -516,8 +516,7 @@ static const struct regmap_config max98373_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max98373_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98373_i2c_probe(struct i2c_client *i2c) { int ret =3D 0; int reg =3D 0; @@ -622,7 +621,7 @@ static struct i2c_driver max98373_i2c_driver =3D { .acpi_match_table =3D ACPI_PTR(max98373_acpi_match), .pm =3D &max98373_pm, }, - .probe =3D max98373_i2c_probe, + .probe_new =3D max98373_i2c_probe, .id_table =3D max98373_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c index 40fd6f363f35..d1fed8e2bded 100644 --- a/sound/soc/codecs/max98390.c +++ b/sound/soc/codecs/max98390.c @@ -1014,8 +1014,7 @@ static void max98390_slot_config(struct i2c_client *i= 2c, max98390->i_l_slot =3D 1; } =20 -static int max98390_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98390_i2c_probe(struct i2c_client *i2c) { int ret =3D 0; int reg =3D 0; @@ -1121,7 +1120,7 @@ static struct i2c_driver max98390_i2c_driver =3D { .acpi_match_table =3D ACPI_PTR(max98390_acpi_match), .pm =3D &max98390_pm, }, - .probe =3D max98390_i2c_probe, + .probe_new =3D max98390_i2c_probe, .id_table =3D max98390_i2c_id, }; =20 diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c index e073f0e029be..9ca6fc254883 100644 --- a/sound/soc/codecs/max9850.c +++ b/sound/soc/codecs/max9850.c @@ -299,8 +299,7 @@ static const struct snd_soc_component_driver soc_compon= ent_dev_max9850 =3D { .non_legacy_dai_naming =3D 1, }; =20 -static int max9850_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max9850_i2c_probe(struct i2c_client *i2c) { struct max9850_priv *max9850; int ret; @@ -331,7 +330,7 @@ static struct i2c_driver max9850_i2c_driver =3D { .driver =3D { .name =3D "max9850", }, - .probe =3D max9850_i2c_probe, + .probe_new =3D max9850_i2c_probe, .id_table =3D max9850_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98504.c b/sound/soc/codecs/max98504.c index a5aa124c4a2e..9da7381472e3 100644 --- a/sound/soc/codecs/max98504.c +++ b/sound/soc/codecs/max98504.c @@ -304,8 +304,7 @@ static const struct regmap_config max98504_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max98504_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max98504_i2c_probe(struct i2c_client *client) { struct device *dev =3D &client->dev; struct device_node *node =3D dev->of_node; @@ -371,7 +370,7 @@ static struct i2c_driver max98504_i2c_driver =3D { .name =3D "max98504", .of_match_table =3D of_match_ptr(max98504_of_match), }, - .probe =3D max98504_i2c_probe, + .probe_new =3D max98504_i2c_probe, .id_table =3D max98504_i2c_id, }; module_i2c_driver(max98504_i2c_driver); diff --git a/sound/soc/codecs/max98520.c b/sound/soc/codecs/max98520.c index bb8649cd421c..f0f085ecab55 100644 --- a/sound/soc/codecs/max98520.c +++ b/sound/soc/codecs/max98520.c @@ -677,7 +677,7 @@ static void max98520_power_on(struct max98520_priv *max= 98520, bool poweron) gpiod_set_value_cansleep(max98520->reset_gpio, !poweron); } =20 -static int max98520_i2c_probe(struct i2c_client *i2c, const struct i2c_dev= ice_id *id) +static int max98520_i2c_probe(struct i2c_client *i2c) { int ret; int reg =3D 0; @@ -757,7 +757,7 @@ static struct i2c_driver max98520_i2c_driver =3D { .of_match_table =3D of_match_ptr(max98520_of_match), .pm =3D &max98520_pm, }, - .probe =3D max98520_i2c_probe, + .probe_new =3D max98520_i2c_probe, .id_table =3D max98520_i2c_id, }; =20 diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index c2b1151c75cc..eb628b7e84f5 100644 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c @@ -613,8 +613,7 @@ static const struct regmap_config max9867_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max9867_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max9867_i2c_probe(struct i2c_client *i2c) { struct max9867_priv *max9867; int ret, reg; @@ -662,7 +661,7 @@ static struct i2c_driver max9867_i2c_driver =3D { .name =3D "max9867", .of_match_table =3D of_match_ptr(max9867_of_match), }, - .probe =3D max9867_i2c_probe, + .probe_new =3D max9867_i2c_probe, .id_table =3D max9867_i2c_id, }; =20 diff --git a/sound/soc/codecs/max9877.c b/sound/soc/codecs/max9877.c index 71fede9224c4..3bf86328d5cd 100644 --- a/sound/soc/codecs/max9877.c +++ b/sound/soc/codecs/max9877.c @@ -133,8 +133,7 @@ static const struct regmap_config max9877_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max9877_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int max9877_i2c_probe(struct i2c_client *client) { struct regmap *regmap; int i; @@ -161,7 +160,7 @@ static struct i2c_driver max9877_i2c_driver =3D { .driver =3D { .name =3D "max9877", }, - .probe =3D max9877_i2c_probe, + .probe_new =3D max9877_i2c_probe, .id_table =3D max9877_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98925.c b/sound/soc/codecs/max98925.c index f34fa274ae4f..63849ebcfd35 100644 --- a/sound/soc/codecs/max98925.c +++ b/sound/soc/codecs/max98925.c @@ -558,8 +558,7 @@ static const struct regmap_config max98925_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max98925_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98925_i2c_probe(struct i2c_client *i2c) { int ret, reg; u32 value; @@ -637,7 +636,7 @@ static struct i2c_driver max98925_i2c_driver =3D { .name =3D "max98925", .of_match_table =3D of_match_ptr(max98925_of_match), }, - .probe =3D max98925_i2c_probe, + .probe_new =3D max98925_i2c_probe, .id_table =3D max98925_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98926.c b/sound/soc/codecs/max98926.c index 1fbbc62bb0a2..56e0a87c7112 100644 --- a/sound/soc/codecs/max98926.c +++ b/sound/soc/codecs/max98926.c @@ -510,8 +510,7 @@ static const struct regmap_config max98926_regmap =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int max98926_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98926_i2c_probe(struct i2c_client *i2c) { int ret, reg; u32 value; @@ -584,7 +583,7 @@ static struct i2c_driver max98926_i2c_driver =3D { .name =3D "max98926", .of_match_table =3D of_match_ptr(max98926_of_match), }, - .probe =3D max98926_i2c_probe, + .probe_new =3D max98926_i2c_probe, .id_table =3D max98926_i2c_id, }; =20 diff --git a/sound/soc/codecs/max98927.c b/sound/soc/codecs/max98927.c index bf78d3c98514..b7cff76d7b5b 100644 --- a/sound/soc/codecs/max98927.c +++ b/sound/soc/codecs/max98927.c @@ -863,8 +863,7 @@ static void max98927_slot_config(struct i2c_client *i2c, max98927->i_l_slot =3D 1; } =20 -static int max98927_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int max98927_i2c_probe(struct i2c_client *i2c) { =20 int ret =3D 0, value; @@ -977,7 +976,7 @@ static struct i2c_driver max98927_i2c_driver =3D { .acpi_match_table =3D ACPI_PTR(max98927_acpi_match), .pm =3D &max98927_pm, }, - .probe =3D max98927_i2c_probe, + .probe_new =3D max98927_i2c_probe, .remove =3D max98927_i2c_remove, .id_table =3D max98927_i2c_id, }; --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 604A1C43217 for ; Tue, 5 Apr 2022 22:55:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1454977AbiDEWjx (ORCPT ); Tue, 5 Apr 2022 18:39:53 -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: quoted-printable X-Ovh-Tracer-Id: 8467893201618044550 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedvnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 = =3D { .write_flag_mask =3D 0x01, }; =20 -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 =3D { .driver =3D { .name =3D "ml26124", }, - .probe =3D ml26124_i2c_probe, + .probe_new =3D ml26124_i2c_probe, .id_table =3D ml26124_i2c_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C3BBC433FE for ; Wed, 6 Apr 2022 02:11:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1846879AbiDFCKc (ORCPT ); Tue, 5 Apr 2022 22:10:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572916AbiDERUK (ORCPT ); Tue, 5 Apr 2022 13:20:10 -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 BDD7525E1 for ; Tue, 5 Apr 2022 10:18:11 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.1.239]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 743AC23DB2 for ; Tue, 5 Apr 2022 16:59:53 +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 2A535293E3788; Tue, 5 Apr 2022 16:59:48 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006ed33b081-15f6-42bd-a177-fdee9279753c, 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 07/14] ASoC: nau8*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:29 +0200 Message-Id: <20220405165836.2165310-8-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: quoted-printable X-Ovh-Tracer-Id: 8469300576108250758 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/nau8540.c | 5 ++--- sound/soc/codecs/nau8810.c | 5 ++--- sound/soc/codecs/nau8821.c | 5 ++--- sound/soc/codecs/nau8822.c | 5 ++--- sound/soc/codecs/nau8824.c | 5 ++--- sound/soc/codecs/nau8825.c | 5 ++--- 6 files changed, 12 insertions(+), 18 deletions(-) diff --git a/sound/soc/codecs/nau8540.c b/sound/soc/codecs/nau8540.c index ace96995fedc..347c715e22a4 100644 --- a/sound/soc/codecs/nau8540.c +++ b/sound/soc/codecs/nau8540.c @@ -823,8 +823,7 @@ static const struct regmap_config nau8540_regmap_config= =3D { .num_reg_defaults =3D ARRAY_SIZE(nau8540_reg_defaults), }; =20 -static int nau8540_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8540_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8540 *nau8540 =3D dev_get_platdata(dev); @@ -874,7 +873,7 @@ static struct i2c_driver nau8540_i2c_driver =3D { .name =3D "nau8540", .of_match_table =3D of_match_ptr(nau8540_of_ids), }, - .probe =3D nau8540_i2c_probe, + .probe_new =3D nau8540_i2c_probe, .id_table =3D nau8540_i2c_ids, }; module_i2c_driver(nau8540_i2c_driver); diff --git a/sound/soc/codecs/nau8810.c b/sound/soc/codecs/nau8810.c index 13676b544f58..7b3b1e4ac246 100644 --- a/sound/soc/codecs/nau8810.c +++ b/sound/soc/codecs/nau8810.c @@ -869,8 +869,7 @@ static const struct snd_soc_component_driver nau8810_co= mponent_driver =3D { .non_legacy_dai_naming =3D 1, }; =20 -static int nau8810_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8810_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8810 *nau8810 =3D dev_get_platdata(dev); @@ -916,7 +915,7 @@ static struct i2c_driver nau8810_i2c_driver =3D { .name =3D "nau8810", .of_match_table =3D of_match_ptr(nau8810_of_match), }, - .probe =3D nau8810_i2c_probe, + .probe_new =3D nau8810_i2c_probe, .id_table =3D nau8810_i2c_id, }; =20 diff --git a/sound/soc/codecs/nau8821.c b/sound/soc/codecs/nau8821.c index d67dc27890a9..ce4e7f46bb06 100644 --- a/sound/soc/codecs/nau8821.c +++ b/sound/soc/codecs/nau8821.c @@ -1626,8 +1626,7 @@ static int nau8821_setup_irq(struct nau8821 *nau8821) return 0; } =20 -static int nau8821_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8821_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8821 *nau8821 =3D dev_get_platdata(&i2c->dev); @@ -1703,7 +1702,7 @@ static struct i2c_driver nau8821_driver =3D { .of_match_table =3D of_match_ptr(nau8821_of_ids), .acpi_match_table =3D ACPI_PTR(nau8821_acpi_match), }, - .probe =3D nau8821_i2c_probe, + .probe_new =3D nau8821_i2c_probe, .remove =3D nau8821_i2c_remove, .id_table =3D nau8821_i2c_ids, }; diff --git a/sound/soc/codecs/nau8822.c b/sound/soc/codecs/nau8822.c index 58123390c7a3..66bbd8f4f1ad 100644 --- a/sound/soc/codecs/nau8822.c +++ b/sound/soc/codecs/nau8822.c @@ -1083,8 +1083,7 @@ static const struct regmap_config nau8822_regmap_conf= ig =3D { .num_reg_defaults =3D ARRAY_SIZE(nau8822_reg_defaults), }; =20 -static int nau8822_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8822_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8822 *nau8822 =3D dev_get_platdata(dev); @@ -1141,7 +1140,7 @@ static struct i2c_driver nau8822_i2c_driver =3D { .name =3D "nau8822", .of_match_table =3D of_match_ptr(nau8822_of_match), }, - .probe =3D nau8822_i2c_probe, + .probe_new =3D nau8822_i2c_probe, .id_table =3D nau8822_i2c_id, }; module_i2c_driver(nau8822_i2c_driver); diff --git a/sound/soc/codecs/nau8824.c b/sound/soc/codecs/nau8824.c index d0dd1542f78a..2a7c93508535 100644 --- a/sound/soc/codecs/nau8824.c +++ b/sound/soc/codecs/nau8824.c @@ -1910,8 +1910,7 @@ const char *nau8824_components(void) } EXPORT_SYMBOL_GPL(nau8824_components); =20 -static int nau8824_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8824_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8824 *nau8824 =3D dev_get_platdata(dev); @@ -1985,7 +1984,7 @@ static struct i2c_driver nau8824_i2c_driver =3D { .of_match_table =3D of_match_ptr(nau8824_of_ids), .acpi_match_table =3D ACPI_PTR(nau8824_acpi_match), }, - .probe =3D nau8824_i2c_probe, + .probe_new =3D nau8824_i2c_probe, .id_table =3D nau8824_i2c_ids, }; module_i2c_driver(nau8824_i2c_driver); diff --git a/sound/soc/codecs/nau8825.c b/sound/soc/codecs/nau8825.c index 7734bc35ab21..20e45a337b8f 100644 --- a/sound/soc/codecs/nau8825.c +++ b/sound/soc/codecs/nau8825.c @@ -2613,8 +2613,7 @@ static int nau8825_setup_irq(struct nau8825 *nau8825) return 0; } =20 -static int nau8825_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int nau8825_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct nau8825 *nau8825 =3D dev_get_platdata(&i2c->dev); @@ -2703,7 +2702,7 @@ static struct i2c_driver nau8825_driver =3D { .of_match_table =3D of_match_ptr(nau8825_of_ids), .acpi_match_table =3D ACPI_PTR(nau8825_acpi_match), }, - .probe =3D nau8825_i2c_probe, + .probe_new =3D nau8825_i2c_probe, .remove =3D nau8825_i2c_remove, .id_table =3D nau8825_i2c_ids, }; --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A18A3C4332F for ; Wed, 6 Apr 2022 01:53:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242289AbiDFBt0 (ORCPT ); Tue, 5 Apr 2022 21:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457964AbiDERB7 (ORCPT ); Tue, 5 Apr 2022 13:01:59 -0400 X-Greylist: delayed 1320 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 10:00:00 PDT Received: from 7.mo560.mail-out.ovh.net (7.mo560.mail-out.ovh.net [188.165.48.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B80B47F239 for ; Tue, 5 Apr 2022 10:00:00 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.208.129]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id CC49B23B25 for ; Tue, 5 Apr 2022 16:59:58 +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 77921293E37E1; Tue, 5 Apr 2022 16:59:53 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006b5e70ec5-e3d9-4a7c-9fc2-75e77b066929, 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 08/14] ASoC: pcm*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:30 +0200 Message-Id: <20220405165836.2165310-9-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: quoted-printable X-Ovh-Tracer-Id: 8470707952104474246 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeehnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/pcm1681.c | 5 ++--- sound/soc/codecs/pcm1789-i2c.c | 5 ++--- sound/soc/codecs/pcm179x-i2c.c | 5 ++--- sound/soc/codecs/pcm3168a-i2c.c | 5 ++--- sound/soc/codecs/pcm512x-i2c.c | 5 ++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/sound/soc/codecs/pcm1681.c b/sound/soc/codecs/pcm1681.c index 9eb65f94fc4d..20eb04c8a41a 100644 --- a/sound/soc/codecs/pcm1681.c +++ b/sound/soc/codecs/pcm1681.c @@ -299,8 +299,7 @@ static const struct i2c_device_id pcm1681_i2c_id[] =3D { }; MODULE_DEVICE_TABLE(i2c, pcm1681_i2c_id); =20 -static int pcm1681_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pcm1681_i2c_probe(struct i2c_client *client) { int ret; struct pcm1681_private *priv; @@ -329,7 +328,7 @@ static struct i2c_driver pcm1681_i2c_driver =3D { .of_match_table =3D of_match_ptr(pcm1681_dt_ids), }, .id_table =3D pcm1681_i2c_id, - .probe =3D pcm1681_i2c_probe, + .probe_new =3D pcm1681_i2c_probe, }; =20 module_i2c_driver(pcm1681_i2c_driver); diff --git a/sound/soc/codecs/pcm1789-i2c.c b/sound/soc/codecs/pcm1789-i2c.c index 7a6be45f8149..28e6ca2ad3a4 100644 --- a/sound/soc/codecs/pcm1789-i2c.c +++ b/sound/soc/codecs/pcm1789-i2c.c @@ -12,8 +12,7 @@ =20 #include "pcm1789.h" =20 -static int pcm1789_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pcm1789_i2c_probe(struct i2c_client *client) { struct regmap *regmap; int ret; @@ -53,7 +52,7 @@ static struct i2c_driver pcm1789_i2c_driver =3D { .of_match_table =3D of_match_ptr(pcm1789_of_match), }, .id_table =3D pcm1789_i2c_ids, - .probe =3D pcm1789_i2c_probe, + .probe_new =3D pcm1789_i2c_probe, .remove =3D pcm1789_i2c_remove, }; =20 diff --git a/sound/soc/codecs/pcm179x-i2c.c b/sound/soc/codecs/pcm179x-i2c.c index 34a3d596f288..e20fe3a85af8 100644 --- a/sound/soc/codecs/pcm179x-i2c.c +++ b/sound/soc/codecs/pcm179x-i2c.c @@ -14,8 +14,7 @@ =20 #include "pcm179x.h" =20 -static int pcm179x_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int pcm179x_i2c_probe(struct i2c_client *client) { struct regmap *regmap; int ret; @@ -50,7 +49,7 @@ static struct i2c_driver pcm179x_i2c_driver =3D { .of_match_table =3D of_match_ptr(pcm179x_of_match), }, .id_table =3D pcm179x_i2c_ids, - .probe =3D pcm179x_i2c_probe, + .probe_new =3D pcm179x_i2c_probe, }; =20 module_i2c_driver(pcm179x_i2c_driver); diff --git a/sound/soc/codecs/pcm3168a-i2c.c b/sound/soc/codecs/pcm3168a-i2= c.c index 1f75933e74fa..c0fa0dc80e8f 100644 --- a/sound/soc/codecs/pcm3168a-i2c.c +++ b/sound/soc/codecs/pcm3168a-i2c.c @@ -15,8 +15,7 @@ =20 #include "pcm3168a.h" =20 -static int pcm3168a_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int pcm3168a_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; =20 @@ -47,7 +46,7 @@ static const struct of_device_id pcm3168a_of_match[] =3D { MODULE_DEVICE_TABLE(of, pcm3168a_of_match); =20 static struct i2c_driver pcm3168a_i2c_driver =3D { - .probe =3D pcm3168a_i2c_probe, + .probe_new =3D pcm3168a_i2c_probe, .remove =3D pcm3168a_i2c_remove, .id_table =3D pcm3168a_i2c_id, .driver =3D { diff --git a/sound/soc/codecs/pcm512x-i2c.c b/sound/soc/codecs/pcm512x-i2c.c index 633f7ebe29a3..81754e141a55 100644 --- a/sound/soc/codecs/pcm512x-i2c.c +++ b/sound/soc/codecs/pcm512x-i2c.c @@ -13,8 +13,7 @@ =20 #include "pcm512x.h" =20 -static int pcm512x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int pcm512x_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; struct regmap_config config =3D pcm512x_regmap; @@ -68,7 +67,7 @@ MODULE_DEVICE_TABLE(acpi, pcm512x_acpi_match); #endif =20 static struct i2c_driver pcm512x_i2c_driver =3D { - .probe =3D pcm512x_i2c_probe, + .probe_new =3D pcm512x_i2c_probe, .remove =3D pcm512x_i2c_remove, .id_table =3D pcm512x_i2c_id, .driver =3D { --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E9C2CC4332F for ; Tue, 5 Apr 2022 20:40:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355247AbiDEUfw (ORCPT ); Tue, 5 Apr 2022 16:35:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457966AbiDERCE (ORCPT ); Tue, 5 Apr 2022 13:02:04 -0400 Received: from 1.mo576.mail-out.ovh.net (1.mo576.mail-out.ovh.net [178.33.251.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE71A8165F for ; Tue, 5 Apr 2022 10:00:05 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.110.115.178]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 1B5CD23ED8 for ; Tue, 5 Apr 2022 17:00:04 +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 BF89D293E3800; Tue, 5 Apr 2022 16:59:58 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006437fb18a-a5e4-41d7-ba4a-0e7824ff30f8, 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 09/14] ASoC: sta*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:31 +0200 Message-Id: <20220405165836.2165310-10-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: quoted-printable X-Ovh-Tracer-Id: 8472396801019709062 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeehnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/sta32x.c | 5 ++--- sound/soc/codecs/sta350.c | 5 ++--- sound/soc/codecs/sta529.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index 86528b930de8..0ba6eab991c4 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c @@ -1094,8 +1094,7 @@ static int sta32x_probe_dt(struct device *dev, struct= sta32x_priv *sta32x) } #endif =20 -static int sta32x_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sta32x_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct sta32x_priv *sta32x; @@ -1175,7 +1174,7 @@ static struct i2c_driver sta32x_i2c_driver =3D { .name =3D "sta32x", .of_match_table =3D of_match_ptr(st32x_dt_ids), }, - .probe =3D sta32x_i2c_probe, + .probe_new =3D sta32x_i2c_probe, .id_table =3D sta32x_i2c_id, }; =20 diff --git a/sound/soc/codecs/sta350.c b/sound/soc/codecs/sta350.c index 75d3b0618ab5..1fb370fc0ae3 100644 --- a/sound/soc/codecs/sta350.c +++ b/sound/soc/codecs/sta350.c @@ -1187,8 +1187,7 @@ static int sta350_probe_dt(struct device *dev, struct= sta350_priv *sta350) } #endif =20 -static int sta350_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sta350_i2c_probe(struct i2c_client *i2c) { struct device *dev =3D &i2c->dev; struct sta350_priv *sta350; @@ -1263,7 +1262,7 @@ static struct i2c_driver sta350_i2c_driver =3D { .name =3D "sta350", .of_match_table =3D of_match_ptr(st350_dt_ids), }, - .probe =3D sta350_i2c_probe, + .probe_new =3D sta350_i2c_probe, .remove =3D sta350_i2c_remove, .id_table =3D sta350_i2c_id, }; diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c index 97b5f34027c0..d90e5512a731 100644 --- a/sound/soc/codecs/sta529.c +++ b/sound/soc/codecs/sta529.c @@ -337,8 +337,7 @@ static const struct regmap_config sta529_regmap =3D { .num_reg_defaults =3D ARRAY_SIZE(sta529_reg_defaults), }; =20 -static int sta529_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int sta529_i2c_probe(struct i2c_client *i2c) { struct sta529 *sta529; int ret; @@ -381,7 +380,7 @@ static struct i2c_driver sta529_i2c_driver =3D { .name =3D "sta529", .of_match_table =3D sta529_of_match, }, - .probe =3D sta529_i2c_probe, + .probe_new =3D sta529_i2c_probe, .id_table =3D sta529_i2c_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7EB9C4332F for ; Tue, 5 Apr 2022 23:41:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1578101AbiDEXS2 (ORCPT ); Tue, 5 Apr 2022 19:18:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572984AbiDERkN (ORCPT ); Tue, 5 Apr 2022 13:40:13 -0400 Received: from 16.mo561.mail-out.ovh.net (16.mo561.mail-out.ovh.net [188.165.56.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35592B8202 for ; Tue, 5 Apr 2022 10:38:14 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.110.115.164]) by mo561.mail-out.ovh.net (Postfix) with ESMTP id 8E9CB23B0B for ; Tue, 5 Apr 2022 17:00:09 +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 18863293E387E; Tue, 5 Apr 2022 17:00:04 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R00643f7ca1c-cfdc-4bdb-9e7b-5dcba98903d2, 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 10/14] ASoC: tas*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:32 +0200 Message-Id: <20220405165836.2165310-11-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: quoted-printable X-Ovh-Tracer-Id: 8473804174955742854 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/tas2552.c | 5 ++--- sound/soc/codecs/tas2764.c | 5 ++--- sound/soc/codecs/tas2770.c | 5 ++--- sound/soc/codecs/tas5086.c | 5 ++--- sound/soc/codecs/tas6424.c | 5 ++--- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index 700baa6314aa..b5c9c61ff5a8 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c @@ -681,8 +681,7 @@ static const struct regmap_config tas2552_regmap_config= =3D { .cache_type =3D REGCACHE_RBTREE, }; =20 -static int tas2552_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas2552_probe(struct i2c_client *client) { struct device *dev; struct tas2552_data *data; @@ -764,7 +763,7 @@ static struct i2c_driver tas2552_i2c_driver =3D { .of_match_table =3D of_match_ptr(tas2552_of_match), .pm =3D &tas2552_pm, }, - .probe =3D tas2552_probe, + .probe_new =3D tas2552_probe, .remove =3D tas2552_i2c_remove, .id_table =3D tas2552_id, }; diff --git a/sound/soc/codecs/tas2764.c b/sound/soc/codecs/tas2764.c index 9265af41c235..d395feffb30b 100644 --- a/sound/soc/codecs/tas2764.c +++ b/sound/soc/codecs/tas2764.c @@ -621,8 +621,7 @@ static int tas2764_parse_dt(struct device *dev, struct = tas2764_priv *tas2764) return 0; } =20 -static int tas2764_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas2764_i2c_probe(struct i2c_client *client) { struct tas2764_priv *tas2764; int result; @@ -678,7 +677,7 @@ static struct i2c_driver tas2764_i2c_driver =3D { .name =3D "tas2764", .of_match_table =3D of_match_ptr(tas2764_of_match), }, - .probe =3D tas2764_i2c_probe, + .probe_new =3D tas2764_i2c_probe, .id_table =3D tas2764_i2c_id, }; module_i2c_driver(tas2764_i2c_driver); diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c index c5ea3b115966..c1dbd978d550 100644 --- a/sound/soc/codecs/tas2770.c +++ b/sound/soc/codecs/tas2770.c @@ -672,8 +672,7 @@ static int tas2770_parse_dt(struct device *dev, struct = tas2770_priv *tas2770) return 0; } =20 -static int tas2770_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas2770_i2c_probe(struct i2c_client *client) { struct tas2770_priv *tas2770; int result; @@ -739,7 +738,7 @@ static struct i2c_driver tas2770_i2c_driver =3D { .name =3D "tas2770", .of_match_table =3D of_match_ptr(tas2770_of_match), }, - .probe =3D tas2770_i2c_probe, + .probe_new =3D tas2770_i2c_probe, .id_table =3D tas2770_i2c_id, }; module_i2c_driver(tas2770_i2c_driver); diff --git a/sound/soc/codecs/tas5086.c b/sound/soc/codecs/tas5086.c index 7831c96d0d83..5c0df3cd4832 100644 --- a/sound/soc/codecs/tas5086.c +++ b/sound/soc/codecs/tas5086.c @@ -911,8 +911,7 @@ static const struct regmap_config tas5086_regmap =3D { .reg_write =3D tas5086_reg_write, }; =20 -static int tas5086_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tas5086_i2c_probe(struct i2c_client *i2c) { struct tas5086_private *priv; struct device *dev =3D &i2c->dev; @@ -994,7 +993,7 @@ static struct i2c_driver tas5086_i2c_driver =3D { .of_match_table =3D of_match_ptr(tas5086_dt_ids), }, .id_table =3D tas5086_i2c_id, - .probe =3D tas5086_i2c_probe, + .probe_new =3D tas5086_i2c_probe, .remove =3D tas5086_i2c_remove, }; =20 diff --git a/sound/soc/codecs/tas6424.c b/sound/soc/codecs/tas6424.c index 59543d392110..f06d2ad613f8 100644 --- a/sound/soc/codecs/tas6424.c +++ b/sound/soc/codecs/tas6424.c @@ -682,8 +682,7 @@ static const struct of_device_id tas6424_of_ids[] =3D { MODULE_DEVICE_TABLE(of, tas6424_of_ids); #endif =20 -static int tas6424_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int tas6424_i2c_probe(struct i2c_client *client) { struct device *dev =3D &client->dev; struct tas6424_data *tas6424; @@ -805,7 +804,7 @@ static struct i2c_driver tas6424_i2c_driver =3D { .name =3D "tas6424", .of_match_table =3D of_match_ptr(tas6424_of_ids), }, - .probe =3D tas6424_i2c_probe, + .probe_new =3D tas6424_i2c_probe, .remove =3D tas6424_i2c_remove, .id_table =3D tas6424_i2c_ids, }; --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8F00EC433EF for ; Wed, 6 Apr 2022 01:10:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1840586AbiDFBLI (ORCPT ); Tue, 5 Apr 2022 21:11:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1572917AbiDERUM (ORCPT ); Tue, 5 Apr 2022 13:20:12 -0400 Received: from 1.mo575.mail-out.ovh.net (1.mo575.mail-out.ovh.net [46.105.41.146]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABCDA25DA for ; Tue, 5 Apr 2022 10:18:13 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.208.235]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id DACBB23379 for ; Tue, 5 Apr 2022 17:00:14 +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 8B928293E38A0; Tue, 5 Apr 2022 17:00:09 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R0064c8ef375-8c61-4341-80ca-324eb6ce81b0, 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 11/14] ASoC: tda7419: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:33 +0200 Message-Id: <20220405165836.2165310-12-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: quoted-printable X-Ovh-Tracer-Id: 8475211549089105542 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/tda7419.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/tda7419.c b/sound/soc/codecs/tda7419.c index 83d220054c96..d964e5207569 100644 --- a/sound/soc/codecs/tda7419.c +++ b/sound/soc/codecs/tda7419.c @@ -571,8 +571,7 @@ static const struct snd_soc_component_driver tda7419_co= mponent_driver =3D { .num_dapm_routes =3D ARRAY_SIZE(tda7419_dapm_routes), }; =20 -static int tda7419_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int tda7419_probe(struct i2c_client *i2c) { struct tda7419_data *tda7419; int i, ret; @@ -630,7 +629,7 @@ static struct i2c_driver tda7419_driver =3D { .name =3D "tda7419", .of_match_table =3D tda7419_of_match, }, - .probe =3D tda7419_probe, + .probe_new =3D tda7419_probe, .id_table =3D tda7419_i2c_id, }; =20 --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C2BFC433F5 for ; Tue, 5 Apr 2022 22:39:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1451629AbiDEWaQ (ORCPT ); Tue, 5 Apr 2022 18:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458146AbiDERKR (ORCPT ); Tue, 5 Apr 2022 13:10:17 -0400 X-Greylist: delayed 476 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 10:08:18 PDT Received: from 4.mo575.mail-out.ovh.net (4.mo575.mail-out.ovh.net [46.105.59.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 664EC81648 for ; Tue, 5 Apr 2022 10:08:17 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.16.160]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 371112376A for ; Tue, 5 Apr 2022 17:00:20 +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 D300B293E393F; Tue, 5 Apr 2022 17:00:14 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R00631340dfc-6f6e-4f91-9fd8-9d7b05e15ce0, 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 12/14] ASoC: tlv320*: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:34 +0200 Message-Id: <20220405165836.2165310-13-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: quoted-printable X-Ovh-Tracer-Id: 8476900402881857158 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeehnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/tlv320adcx140.c | 5 ++--- sound/soc/codecs/tlv320aic23-i2c.c | 5 ++--- sound/soc/codecs/tlv320dac33.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/sound/soc/codecs/tlv320adcx140.c b/sound/soc/codecs/tlv320adcx= 140.c index 32b120d624b2..0b06fbb14171 100644 --- a/sound/soc/codecs/tlv320adcx140.c +++ b/sound/soc/codecs/tlv320adcx140.c @@ -1083,8 +1083,7 @@ static const struct of_device_id tlv320adcx140_of_mat= ch[] =3D { MODULE_DEVICE_TABLE(of, tlv320adcx140_of_match); #endif =20 -static int adcx140_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int adcx140_i2c_probe(struct i2c_client *i2c) { struct adcx140_priv *adcx140; int ret; @@ -1143,7 +1142,7 @@ static struct i2c_driver adcx140_i2c_driver =3D { .name =3D "tlv320adcx140-codec", .of_match_table =3D of_match_ptr(tlv320adcx140_of_match), }, - .probe =3D adcx140_i2c_probe, + .probe_new =3D adcx140_i2c_probe, .id_table =3D adcx140_i2c_id, }; module_i2c_driver(adcx140_i2c_driver); diff --git a/sound/soc/codecs/tlv320aic23-i2c.c b/sound/soc/codecs/tlv320ai= c23-i2c.c index dbb8f969274c..1f97673a1cc0 100644 --- a/sound/soc/codecs/tlv320aic23-i2c.c +++ b/sound/soc/codecs/tlv320aic23-i2c.c @@ -16,8 +16,7 @@ =20 #include "tlv320aic23.h" =20 -static int tlv320aic23_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *i2c_id) +static int tlv320aic23_i2c_probe(struct i2c_client *i2c) { struct regmap *regmap; =20 @@ -48,7 +47,7 @@ static struct i2c_driver tlv320aic23_i2c_driver =3D { .name =3D "tlv320aic23-codec", .of_match_table =3D of_match_ptr(tlv320aic23_of_match), }, - .probe =3D tlv320aic23_i2c_probe, + .probe_new =3D tlv320aic23_i2c_probe, .id_table =3D tlv320aic23_id, }; =20 diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index 48572d66cb3b..66f1d1cd6cf0 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c @@ -1463,8 +1463,7 @@ static struct snd_soc_dai_driver dac33_dai =3D { .ops =3D &dac33_dai_ops, }; =20 -static int dac33_i2c_probe(struct i2c_client *client, - const struct i2c_device_id *id) +static int dac33_i2c_probe(struct i2c_client *client) { struct tlv320dac33_platform_data *pdata; struct tlv320dac33_priv *dac33; @@ -1566,7 +1565,7 @@ static struct i2c_driver tlv320dac33_i2c_driver =3D { .driver =3D { .name =3D "tlv320dac33-codec", }, - .probe =3D dac33_i2c_probe, + .probe_new =3D dac33_i2c_probe, .remove =3D dac33_i2c_remove, .id_table =3D tlv320dac33_i2c_id, }; --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 01D08C46467 for ; Tue, 5 Apr 2022 23:41:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1576030AbiDEXKF (ORCPT ); Tue, 5 Apr 2022 19:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458143AbiDERKR (ORCPT ); Tue, 5 Apr 2022 13:10:17 -0400 X-Greylist: delayed 520 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Apr 2022 10:08:15 PDT Received: from 10.mo576.mail-out.ovh.net (10.mo576.mail-out.ovh.net [46.105.73.241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BD926C1DA for ; Tue, 5 Apr 2022 10:08:13 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.111.172.191]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id A322523CC8 for ; Tue, 5 Apr 2022 17:00:25 +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 3AE23293E39B6; Tue, 5 Apr 2022 17:00:20 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R006bbcc4550-8b60-44cb-b1ac-2dcbc4224a37, 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 13/14] ASoC: ts3a227e: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:35 +0200 Message-Id: <20220405165836.2165310-14-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: quoted-printable X-Ovh-Tracer-Id: 8478307775260690054 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpeejnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/ts3a227e.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/ts3a227e.c b/sound/soc/codecs/ts3a227e.c index 962f5d48378a..d8ab0810fceb 100644 --- a/sound/soc/codecs/ts3a227e.c +++ b/sound/soc/codecs/ts3a227e.c @@ -282,8 +282,7 @@ static int ts3a227e_parse_device_property(struct ts3a22= 7e *ts3a227e, return 0; } =20 -static int ts3a227e_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int ts3a227e_i2c_probe(struct i2c_client *i2c) { struct ts3a227e *ts3a227e; struct device *dev =3D &i2c->dev; @@ -389,7 +388,7 @@ static struct i2c_driver ts3a227e_driver =3D { .of_match_table =3D of_match_ptr(ts3a227e_of_match), .acpi_match_table =3D ACPI_PTR(ts3a227e_acpi_match), }, - .probe =3D ts3a227e_i2c_probe, + .probe_new =3D ts3a227e_i2c_probe, .id_table =3D ts3a227e_i2c_ids, }; module_i2c_driver(ts3a227e_driver); --=20 2.27.0 From nobody Fri Jun 19 08:32:03 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AEE6BC41535 for ; Tue, 5 Apr 2022 20:40:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242757AbiDEUiA (ORCPT ); Tue, 5 Apr 2022 16:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1457977AbiDERCc (ORCPT ); Tue, 5 Apr 2022 13:02:32 -0400 Received: from 9.mo584.mail-out.ovh.net (9.mo584.mail-out.ovh.net [46.105.40.176]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC57B2E9C6 for ; Tue, 5 Apr 2022 10:00:32 -0700 (PDT) Received: from player771.ha.ovh.net (unknown [10.108.1.181]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id 183F62353B for ; Tue, 5 Apr 2022 17:00:31 +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 9880C293E39E0; Tue, 5 Apr 2022 17:00:25 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-106R0067464f05e-4097-4c7c-a65a-96236ca073ef, 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 14/14] ASoC: uda1380: use simple i2c probe function Date: Tue, 5 Apr 2022 18:58:36 +0200 Message-Id: <20220405165836.2165310-15-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: quoted-printable X-Ovh-Tracer-Id: 8479715150873462406 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudejgedguddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhtvghphhgvnhcumfhithhtuceoshhtvghvvgesshhkvddrohhrgheqnecuggftrfgrthhtvghrnhepjeelledvfeeiiedutdefveekgeeuheekkedvffegvdehudegkefgjeejkefgueegnecukfhppedtrddtrddtrddtpdekvddrieehrddvhedrvddtudenucevlhhushhtvghrufhiiigvpedunecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeejuddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehsthgvvhgvsehskhdvrdhorhhgpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhg Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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/uda1380.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c index 13060a9a2388..b5004842520b 100644 --- a/sound/soc/codecs/uda1380.c +++ b/sound/soc/codecs/uda1380.c @@ -739,8 +739,7 @@ static const struct snd_soc_component_driver soc_compon= ent_dev_uda1380 =3D { .non_legacy_dai_naming =3D 1, }; =20 -static int uda1380_i2c_probe(struct i2c_client *i2c, - const struct i2c_device_id *id) +static int uda1380_i2c_probe(struct i2c_client *i2c) { struct uda1380_platform_data *pdata =3D i2c->dev.platform_data; struct uda1380_priv *uda1380; @@ -800,7 +799,7 @@ static struct i2c_driver uda1380_i2c_driver =3D { .name =3D "uda1380-codec", .of_match_table =3D uda1380_of_match, }, - .probe =3D uda1380_i2c_probe, + .probe_new =3D uda1380_i2c_probe, .id_table =3D uda1380_i2c_id, }; =20 --=20 2.27.0