[alsa-devel] [PATCH] ASoC: Use bool rather than 1 bit bitfield in multi-component

Mark Brown broonie at opensource.wolfsonmicro.com
Thu Jul 1 21:55:34 CEST 2010


This fixes sparse complaints about the bitfield being signed but
only 1 bit wide (so not enough space to store the sign bit).

Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 include/sound/soc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/sound/soc.h b/include/sound/soc.h
index b3fe7a8..fb3093b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -573,7 +573,7 @@ struct snd_soc_card {
 	struct list_head list;
 	struct mutex mutex;
 
-	int instantiated:1;
+	bool instantiated;
 
 	int (*probe)(struct platform_device *pdev);
 	int (*remove)(struct platform_device *pdev);
-- 
1.7.1



More information about the Alsa-devel mailing list