All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback
@ 2021-10-20 12:58 Uwe Kleine-König
  2021-10-25 10:55 ` Charles Keepax
  2021-10-25 16:39 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-10-20 12:58 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown; +Cc: patches, alsa-devel, kernel

A driver with a remove callback that just returns 0 behaves identically
to a driver with no remove callback at all. So simplify accordingly.

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

diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index dcee7b2bd3d7..86b1f6eaa599 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -713,18 +713,12 @@ static int wm8731_spi_probe(struct spi_device *spi)
 	return 0;
 }
 
-static int wm8731_spi_remove(struct spi_device *spi)
-{
-	return 0;
-}
-
 static struct spi_driver wm8731_spi_driver = {
 	.driver = {
 		.name	= "wm8731",
 		.of_match_table = wm8731_of_match,
 	},
 	.probe		= wm8731_spi_probe,
-	.remove		= wm8731_spi_remove,
 };
 #endif /* CONFIG_SPI_MASTER */
 
-- 
2.30.2


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

* Re: [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback
  2021-10-20 12:58 [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback Uwe Kleine-König
@ 2021-10-25 10:55 ` Charles Keepax
  2021-10-25 16:39 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Charles Keepax @ 2021-10-25 10:55 UTC (permalink / raw)
  To: Uwe Kleine-König
  Cc: patches, alsa-devel, Mark Brown, Liam Girdwood, kernel

On Wed, Oct 20, 2021 at 02:58:03PM +0200, Uwe Kleine-König wrote:
> A driver with a remove callback that just returns 0 behaves identically
> to a driver with no remove callback at all. So simplify accordingly.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>

Thanks,
Charles

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

* Re: [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback
  2021-10-20 12:58 [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback Uwe Kleine-König
  2021-10-25 10:55 ` Charles Keepax
@ 2021-10-25 16:39 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2021-10-25 16:39 UTC (permalink / raw)
  To: Liam Girdwood, Uwe Kleine-König
  Cc: patches, alsa-devel, Mark Brown, kernel

On Wed, 20 Oct 2021 14:58:03 +0200, Uwe Kleine-König wrote:
> A driver with a remove callback that just returns 0 behaves identically
> to a driver with no remove callback at all. So simplify accordingly.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoc: wm8731: Drop empty spi_driver remove callback
      commit: 8b27cb2e6dd67552f19f45b4560bdedce1ffb638

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

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

end of thread, other threads:[~2021-10-25 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-20 12:58 [PATCH] ASoc: wm8731: Drop empty spi_driver remove callback Uwe Kleine-König
2021-10-25 10:55 ` Charles Keepax
2021-10-25 16:39 ` Mark Brown

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.