Commit a3737731 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 32475263
...@@ -174,11 +174,11 @@ struct rsnd_dai { ...@@ -174,11 +174,11 @@ struct rsnd_dai {
struct rsnd_dai_stream playback; struct rsnd_dai_stream playback;
struct rsnd_dai_stream capture; struct rsnd_dai_stream capture;
int clk_master:1; unsigned int clk_master:1;
int bit_clk_inv:1; unsigned int bit_clk_inv:1;
int frm_clk_inv:1; unsigned int frm_clk_inv:1;
int sys_delay:1; unsigned int sys_delay:1;
int data_alignment:1; unsigned int data_alignment:1;
}; };
#define rsnd_dai_nr(priv) ((priv)->dai_nr) #define rsnd_dai_nr(priv) ((priv)->dai_nr)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment