diff mbox series

ASoC: makes rtd->initialized bit field

Message ID 87o752k7gq.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State Accepted
Commit 4849b2f78020cf0e3ba67777aadd07c620c91811
Headers show
Series ASoC: makes rtd->initialized bit field | expand

Commit Message

Kuninori Morimoto Sept. 5, 2024, 5:14 a.m. UTC
rtd->initialized is used to know whether soc_init_pcm_runtime()
was correctly fined, and used to call snd_soc_link_exit().
We don't need to have it as bool, let's make it bit-field same as
other flags.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Cc: Cezary Rojewski <cezary.rojewski@intel.com>
---
 include/sound/soc.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Mark Brown Sept. 6, 2024, 5:17 p.m. UTC | #1
On Thu, 05 Sep 2024 05:14:29 +0000, Kuninori Morimoto wrote:
> rtd->initialized is used to know whether soc_init_pcm_runtime()
> was correctly fined, and used to call snd_soc_link_exit().
> We don't need to have it as bool, let's make it bit-field same as
> other flags.
> 
> 

Applied to

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

Thanks!

[1/1] ASoC: makes rtd->initialized bit field
      commit: 4849b2f78020cf0e3ba67777aadd07c620c91811

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
diff mbox series

Patch

diff --git a/include/sound/soc.h b/include/sound/soc.h
index 81ef380b2e06..e6e359c1a2ac 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1207,8 +1207,7 @@  struct snd_soc_pcm_runtime {
 	/* bit field */
 	unsigned int pop_wait:1;
 	unsigned int fe_compr:1; /* for Dynamic PCM */
-
-	bool initialized;
+	unsigned int initialized:1;
 
 	/* CPU/Codec/Platform */
 	int num_components;