From: Ruan Jinjie <ruanjinjie@huawei.com> To: <perex@perex.cz>, <tiwai@suse.com>, <claudiu.beznea@tuxon.dev>, <lgirdwood@gmail.com>, <broonie@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <peda@axentia.se>, <lars@metafoo.de>, <nuno.sa@analog.com>, <povik+lin@cutebit.org>, <wens@csie.org>, <jernej.skrabec@gmail.com>, <samuel@sholland.org>, <robh@kernel.org>, <u.kleine-koenig@pengutronix.de>, <alsa-devel@alsa-project.org>, <linux-arm-kernel@lists.infradead.org>, <asahi@lists.linux.dev>, <linux-sunxi@lists.linux.dev> Cc: <ruanjinjie@huawei.com> Subject: [PATCH -next 1/5] ASoC: atmel: Remove redundant of_match_ptr() Date: Fri, 11 Aug 2023 15:14:22 +0800 [thread overview] Message-ID: <20230811071426.2343133-2-ruanjinjie@huawei.com> (raw) In-Reply-To: <20230811071426.2343133-1-ruanjinjie@huawei.com> The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> --- sound/soc/atmel/atmel-i2s.c | 2 +- sound/soc/atmel/atmel-pdmic.c | 2 +- sound/soc/atmel/mchp-i2s-mcc.c | 2 +- sound/soc/atmel/mchp-spdifrx.c | 2 +- sound/soc/atmel/mchp-spdiftx.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c index 69a88dc65165..4febd4d3d0fa 100644 --- a/sound/soc/atmel/atmel-i2s.c +++ b/sound/soc/atmel/atmel-i2s.c @@ -730,7 +730,7 @@ static void atmel_i2s_remove(struct platform_device *pdev) static struct platform_driver atmel_i2s_driver = { .driver = { .name = "atmel_i2s", - .of_match_table = of_match_ptr(atmel_i2s_dt_ids), + .of_match_table = atmel_i2s_dt_ids, }, .probe = atmel_i2s_probe, .remove_new = atmel_i2s_remove, diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index efcbdd1a629f..0db7815d230c 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -690,7 +690,7 @@ static int atmel_pdmic_probe(struct platform_device *pdev) static struct platform_driver atmel_pdmic_driver = { .driver = { .name = "atmel-pdmic", - .of_match_table = of_match_ptr(atmel_pdmic_of_match), + .of_match_table = atmel_pdmic_of_match, .pm = &snd_soc_pm_ops, }, .probe = atmel_pdmic_probe, diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 7c83d48ca1a0..4b8a63295f89 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound/soc/atmel/mchp-i2s-mcc.c @@ -1098,7 +1098,7 @@ static void mchp_i2s_mcc_remove(struct platform_device *pdev) static struct platform_driver mchp_i2s_mcc_driver = { .driver = { .name = "mchp_i2s_mcc", - .of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids), + .of_match_table = mchp_i2s_mcc_dt_ids, }, .probe = mchp_i2s_mcc_probe, .remove_new = mchp_i2s_mcc_remove, diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c index ff6aba143aee..e97cd8f4a728 100644 --- a/sound/soc/atmel/mchp-spdifrx.c +++ b/sound/soc/atmel/mchp-spdifrx.c @@ -1197,7 +1197,7 @@ static struct platform_driver mchp_spdifrx_driver = { .remove_new = mchp_spdifrx_remove, .driver = { .name = "mchp_spdifrx", - .of_match_table = of_match_ptr(mchp_spdifrx_dt_ids), + .of_match_table = mchp_spdifrx_dt_ids, .pm = pm_ptr(&mchp_spdifrx_pm_ops), }, }; diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c index 1d3e17119888..b1040576f71f 100644 --- a/sound/soc/atmel/mchp-spdiftx.c +++ b/sound/soc/atmel/mchp-spdiftx.c @@ -891,7 +891,7 @@ static struct platform_driver mchp_spdiftx_driver = { .remove_new = mchp_spdiftx_remove, .driver = { .name = "mchp_spdiftx", - .of_match_table = of_match_ptr(mchp_spdiftx_dt_ids), + .of_match_table = mchp_spdiftx_dt_ids, .pm = pm_ptr(&mchp_spdiftx_pm_ops) }, }; -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Ruan Jinjie <ruanjinjie@huawei.com> To: <perex@perex.cz>, <tiwai@suse.com>, <claudiu.beznea@tuxon.dev>, <lgirdwood@gmail.com>, <broonie@kernel.org>, <nicolas.ferre@microchip.com>, <alexandre.belloni@bootlin.com>, <peda@axentia.se>, <lars@metafoo.de>, <nuno.sa@analog.com>, <povik+lin@cutebit.org>, <wens@csie.org>, <jernej.skrabec@gmail.com>, <samuel@sholland.org>, <robh@kernel.org>, <u.kleine-koenig@pengutronix.de>, <alsa-devel@alsa-project.org>, <linux-arm-kernel@lists.infradead.org>, <asahi@lists.linux.dev>, <linux-sunxi@lists.linux.dev> Cc: <ruanjinjie@huawei.com> Subject: [PATCH -next 1/5] ASoC: atmel: Remove redundant of_match_ptr() Date: Fri, 11 Aug 2023 15:14:22 +0800 [thread overview] Message-ID: <20230811071426.2343133-2-ruanjinjie@huawei.com> (raw) In-Reply-To: <20230811071426.2343133-1-ruanjinjie@huawei.com> The driver depends on CONFIG_OF, it is not necessary to use of_match_ptr() here. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> --- sound/soc/atmel/atmel-i2s.c | 2 +- sound/soc/atmel/atmel-pdmic.c | 2 +- sound/soc/atmel/mchp-i2s-mcc.c | 2 +- sound/soc/atmel/mchp-spdifrx.c | 2 +- sound/soc/atmel/mchp-spdiftx.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/atmel/atmel-i2s.c b/sound/soc/atmel/atmel-i2s.c index 69a88dc65165..4febd4d3d0fa 100644 --- a/sound/soc/atmel/atmel-i2s.c +++ b/sound/soc/atmel/atmel-i2s.c @@ -730,7 +730,7 @@ static void atmel_i2s_remove(struct platform_device *pdev) static struct platform_driver atmel_i2s_driver = { .driver = { .name = "atmel_i2s", - .of_match_table = of_match_ptr(atmel_i2s_dt_ids), + .of_match_table = atmel_i2s_dt_ids, }, .probe = atmel_i2s_probe, .remove_new = atmel_i2s_remove, diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index efcbdd1a629f..0db7815d230c 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -690,7 +690,7 @@ static int atmel_pdmic_probe(struct platform_device *pdev) static struct platform_driver atmel_pdmic_driver = { .driver = { .name = "atmel-pdmic", - .of_match_table = of_match_ptr(atmel_pdmic_of_match), + .of_match_table = atmel_pdmic_of_match, .pm = &snd_soc_pm_ops, }, .probe = atmel_pdmic_probe, diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 7c83d48ca1a0..4b8a63295f89 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound/soc/atmel/mchp-i2s-mcc.c @@ -1098,7 +1098,7 @@ static void mchp_i2s_mcc_remove(struct platform_device *pdev) static struct platform_driver mchp_i2s_mcc_driver = { .driver = { .name = "mchp_i2s_mcc", - .of_match_table = of_match_ptr(mchp_i2s_mcc_dt_ids), + .of_match_table = mchp_i2s_mcc_dt_ids, }, .probe = mchp_i2s_mcc_probe, .remove_new = mchp_i2s_mcc_remove, diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c index ff6aba143aee..e97cd8f4a728 100644 --- a/sound/soc/atmel/mchp-spdifrx.c +++ b/sound/soc/atmel/mchp-spdifrx.c @@ -1197,7 +1197,7 @@ static struct platform_driver mchp_spdifrx_driver = { .remove_new = mchp_spdifrx_remove, .driver = { .name = "mchp_spdifrx", - .of_match_table = of_match_ptr(mchp_spdifrx_dt_ids), + .of_match_table = mchp_spdifrx_dt_ids, .pm = pm_ptr(&mchp_spdifrx_pm_ops), }, }; diff --git a/sound/soc/atmel/mchp-spdiftx.c b/sound/soc/atmel/mchp-spdiftx.c index 1d3e17119888..b1040576f71f 100644 --- a/sound/soc/atmel/mchp-spdiftx.c +++ b/sound/soc/atmel/mchp-spdiftx.c @@ -891,7 +891,7 @@ static struct platform_driver mchp_spdiftx_driver = { .remove_new = mchp_spdiftx_remove, .driver = { .name = "mchp_spdiftx", - .of_match_table = of_match_ptr(mchp_spdiftx_dt_ids), + .of_match_table = mchp_spdiftx_dt_ids, .pm = pm_ptr(&mchp_spdiftx_pm_ops) }, }; -- 2.34.1
next prev parent reply other threads:[~2023-08-11 7:15 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-08-11 7:14 [PATCH -next 0/5] sound: Remove redundant of_match_ptr() macro Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie [this message] 2023-08-11 7:14 ` [PATCH -next 1/5] ASoC: atmel: Remove redundant of_match_ptr() Ruan Jinjie 2023-08-11 7:14 ` [PATCH -next 2/5] ASoC: atmel: tse850-pcm5142: " Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie 2023-08-11 7:14 ` [PATCH -next 3/5] ASoC: sunxi: sun4i-spdif: " Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie 2023-08-13 15:22 ` Jernej Škrabec 2023-08-13 15:22 ` Jernej Škrabec 2023-08-11 7:14 ` [PATCH -next 4/5] ASoC: ssm3515: " Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie 2023-08-11 7:14 ` [PATCH -next 5/5] ALSA: " Ruan Jinjie 2023-08-11 7:14 ` Ruan Jinjie 2023-08-11 7:49 ` Takashi Iwai 2023-08-11 7:49 ` Takashi Iwai 2023-08-11 7:51 ` [PATCH -next 0/5] sound: Remove redundant of_match_ptr() macro Takashi Iwai 2023-08-11 7:51 ` Takashi Iwai 2023-08-11 7:59 ` Ruan Jinjie 2023-08-11 7:59 ` Ruan Jinjie 2023-08-14 0:33 ` Mark Brown 2023-08-14 0:33 ` Mark Brown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230811071426.2343133-2-ruanjinjie@huawei.com \ --to=ruanjinjie@huawei.com \ --cc=alexandre.belloni@bootlin.com \ --cc=alsa-devel@alsa-project.org \ --cc=asahi@lists.linux.dev \ --cc=broonie@kernel.org \ --cc=claudiu.beznea@tuxon.dev \ --cc=jernej.skrabec@gmail.com \ --cc=lars@metafoo.de \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-sunxi@lists.linux.dev \ --cc=nicolas.ferre@microchip.com \ --cc=nuno.sa@analog.com \ --cc=peda@axentia.se \ --cc=perex@perex.cz \ --cc=povik+lin@cutebit.org \ --cc=robh@kernel.org \ --cc=samuel@sholland.org \ --cc=tiwai@suse.com \ --cc=u.kleine-koenig@pengutronix.de \ --cc=wens@csie.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.