aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2013-11-08 04:46:53 -0500
committerMark Brown <broonie@linaro.org>2013-11-24 08:42:44 -0500
commita37377314ff068c83f425979142263a17a6f18af (patch)
treebd74c160350e817ed94c0cb93eaffecc89896412 /sound/soc
parent324752632a2017cc2e2464d110445328ad2a987c (diff)
ASoC: rcar: some dubious one-bit signed bitfields
Because these are signed they can either be 0 or -1 instead of 0 and 1 as intended. It doesn't cause a problem from what I can see, but it's dangerous and Sparse complains: sound/soc/sh/rcar/rsnd.h:177:25: error: dubious one-bit signed bitfield Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/sh/rcar/rsnd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/sh/rcar/rsnd.h b/sound/soc/sh/rcar/rsnd.h
index 9e463e50e7e6..b5ac3a2afc58 100644
--- a/sound/soc/sh/rcar/rsnd.h
+++ b/sound/soc/sh/rcar/rsnd.h
@@ -174,11 +174,11 @@ struct rsnd_dai {
174 struct rsnd_dai_stream playback; 174 struct rsnd_dai_stream playback;
175 struct rsnd_dai_stream capture; 175 struct rsnd_dai_stream capture;
176 176
177 int clk_master:1; 177 unsigned int clk_master:1;
178 int bit_clk_inv:1; 178 unsigned int bit_clk_inv:1;
179 int frm_clk_inv:1; 179 unsigned int frm_clk_inv:1;
180 int sys_delay:1; 180 unsigned int sys_delay:1;
181 int data_alignment:1; 181 unsigned int data_alignment:1;
182}; 182};
183 183
184#define rsnd_dai_nr(priv) ((priv)->dai_nr) 184#define rsnd_dai_nr(priv) ((priv)->dai_nr)