All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: da7219: Drop no-op remove function
@ 2022-05-26 20:41 Uwe Kleine-König
  2022-05-27  8:48 ` DLG Adam Thomson
  2022-05-30  8:36 ` Uwe Kleine-König
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2022-05-26 20:41 UTC (permalink / raw)
  To: Support Opensource, Liam Girdwood, Mark Brown; +Cc: alsa-devel, kernel

A remove callback that just returns 0 is equivalent to no callback at all
as can be seen in i2c_device_remove(). So simplify accordingly.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 sound/soc/codecs/da7219.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
index c7493549a9a5..7df18a2c36b9 100644
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@ -2694,11 +2694,6 @@ static int da7219_i2c_probe(struct i2c_client *i2c,
 	return ret;
 }
 
-static int da7219_i2c_remove(struct i2c_client *client)
-{
-	return 0;
-}
-
 static const struct i2c_device_id da7219_i2c_id[] = {
 	{ "da7219", },
 	{ }
@@ -2712,7 +2707,6 @@ static struct i2c_driver da7219_i2c_driver = {
 		.acpi_match_table = ACPI_PTR(da7219_acpi_match),
 	},
 	.probe		= da7219_i2c_probe,
-	.remove		= da7219_i2c_remove,
 	.id_table	= da7219_i2c_id,
 };
 

base-commit: 4b0986a3613c92f4ec1bdc7f60ec66fea135991f
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] ASoC: da7219: Drop no-op remove function
  2022-05-26 20:41 [PATCH] ASoC: da7219: Drop no-op remove function Uwe Kleine-König
@ 2022-05-27  8:48 ` DLG Adam Thomson
  2022-05-30  8:36 ` Uwe Kleine-König
  1 sibling, 0 replies; 5+ messages in thread
From: DLG Adam Thomson @ 2022-05-27  8:48 UTC (permalink / raw)
  To: Uwe Kleine-König, Support Opensource, Liam Girdwood, Mark Brown
  Cc: alsa-devel, kernel

On 26 May 2022 21:42, Uwe Kleine-König wrote:

> A remove callback that just returns 0 is equivalent to no callback at all
> as can be seen in i2c_device_remove(). So simplify accordingly.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>

Reviewed-by: Adam Thomson <DLG-Adam.Thomson.Opensource@dm.renesas.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ASoC: da7219: Drop no-op remove function
  2022-05-26 20:41 [PATCH] ASoC: da7219: Drop no-op remove function Uwe Kleine-König
  2022-05-27  8:48 ` DLG Adam Thomson
@ 2022-05-30  8:36 ` Uwe Kleine-König
  2022-05-30 15:00   ` Mark Brown
  1 sibling, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2022-05-30  8:36 UTC (permalink / raw)
  To: Support Opensource, Liam Girdwood, Mark Brown; +Cc: alsa-devel, kernel

[-- Attachment #1: Type: text/plain, Size: 2134 bytes --]

On Thu, May 26, 2022 at 10:41:45PM +0200, Uwe Kleine-König wrote:
> A remove callback that just returns 0 is equivalent to no callback at all
> as can be seen in i2c_device_remove(). So simplify accordingly.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  sound/soc/codecs/da7219.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c
> index c7493549a9a5..7df18a2c36b9 100644
> --- a/sound/soc/codecs/da7219.c
> +++ b/sound/soc/codecs/da7219.c
> @@ -2694,11 +2694,6 @@ static int da7219_i2c_probe(struct i2c_client *i2c,
>  	return ret;
>  }
>  
> -static int da7219_i2c_remove(struct i2c_client *client)
> -{
> -	return 0;
> -}
> -
>  static const struct i2c_device_id da7219_i2c_id[] = {
>  	{ "da7219", },
>  	{ }
> @@ -2712,7 +2707,6 @@ static struct i2c_driver da7219_i2c_driver = {
>  		.acpi_match_table = ACPI_PTR(da7219_acpi_match),
>  	},
>  	.probe		= da7219_i2c_probe,
> -	.remove		= da7219_i2c_remove,
>  	.id_table	= da7219_i2c_id,
>  };

This patch conflicts with 89be5dc60d67 ("ASoC: da[79]*: use simple i2c
probe function"), the trivial(?) conflict resolution is:

diff --cc sound/soc/codecs/da7219.c
index 7fdef38ed8cd,7df18a2c36b9..000000000000
--- a/sound/soc/codecs/da7219.c
+++ b/sound/soc/codecs/da7219.c
@@@ -2710,8 -2706,7 +2705,7 @@@ static struct i2c_driver da7219_i2c_dri
  		.of_match_table = of_match_ptr(da7219_of_match),
  		.acpi_match_table = ACPI_PTR(da7219_acpi_match),
  	},
 -	.probe		= da7219_i2c_probe,
 +	.probe_new	= da7219_i2c_probe,
- 	.remove		= da7219_i2c_remove,
  	.id_table	= da7219_i2c_id,
  };
  
Please tell me if I should resend the patch rebased to
sound.git/for-next (or 5.19-rc1 once that's out). The same applies to:

	ASoC: lm49453: Drop no-op remove function
	ASoC: da732x: Drop no-op remove function
	ASoC: ak4642: Drop no-op remove function

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ASoC: da7219: Drop no-op remove function
  2022-05-30  8:36 ` Uwe Kleine-König
@ 2022-05-30 15:00   ` Mark Brown
  2022-05-30 19:28     ` Uwe Kleine-König
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2022-05-30 15:00 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: alsa-devel, Support Opensource, kernel, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

On Mon, May 30, 2022 at 10:36:16AM +0200, Uwe Kleine-König wrote:

> This patch conflicts with 89be5dc60d67 ("ASoC: da[79]*: use simple i2c
> probe function"), the trivial(?) conflict resolution is:

> Please tell me if I should resend the patch rebased to
> sound.git/for-next (or 5.19-rc1 once that's out). The same applies to:
> 
> 	ASoC: lm49453: Drop no-op remove function
> 	ASoC: da732x: Drop no-op remove function
> 	ASoC: ak4642: Drop no-op remove function

It'd be really handy if you could resend please.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ASoC: da7219: Drop no-op remove function
  2022-05-30 15:00   ` Mark Brown
@ 2022-05-30 19:28     ` Uwe Kleine-König
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2022-05-30 19:28 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Support Opensource, kernel, Liam Girdwood

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

On Mon, May 30, 2022 at 05:00:20PM +0200, Mark Brown wrote:
> On Mon, May 30, 2022 at 10:36:16AM +0200, Uwe Kleine-König wrote:
> 
> > This patch conflicts with 89be5dc60d67 ("ASoC: da[79]*: use simple i2c
> > probe function"), the trivial(?) conflict resolution is:
> 
> > Please tell me if I should resend the patch rebased to
> > sound.git/for-next (or 5.19-rc1 once that's out). The same applies to:
> > 
> > 	ASoC: lm49453: Drop no-op remove function
> > 	ASoC: da732x: Drop no-op remove function
> > 	ASoC: ak4642: Drop no-op remove function
> 
> It'd be really handy if you could resend please.

OK, will do when 5.19-rc1 is out.

Best regards
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | https://www.pengutronix.de/ |

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-30 19:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-26 20:41 [PATCH] ASoC: da7219: Drop no-op remove function Uwe Kleine-König
2022-05-27  8:48 ` DLG Adam Thomson
2022-05-30  8:36 ` Uwe Kleine-König
2022-05-30 15:00   ` Mark Brown
2022-05-30 19:28     ` Uwe Kleine-König

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.