diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2018-02-16 17:36:10 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-02-16 18:22:00 +0300 |
commit | e21a5acfab2f13eeffe50d5d5f87c099540a3bf3 (patch) | |
tree | 4bb336689cf3863f507fcd19dadac3be011c7524 /sound | |
parent | 04ff40a983e864b586f189b4c3503b6f61263643 (diff) | |
download | linux-e21a5acfab2f13eeffe50d5d5f87c099540a3bf3.tar.xz |
ASoC: wm_adsp: Fix some signedness errors in register access
base and sysclk_reg should be unsigned int, as that is what
regmap takes as a register address.
sysclk_mask is used to mask unsigned register values so
should be unsigned.
sysclk_shift is a shift value so is not allowed to be negative.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm_adsp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h index 41cc11c19b83..d4042c95315e 100644 --- a/sound/soc/codecs/wm_adsp.h +++ b/sound/soc/codecs/wm_adsp.h @@ -64,10 +64,10 @@ struct wm_adsp { struct regmap *regmap; struct snd_soc_codec *codec; - int base; - int sysclk_reg; - int sysclk_mask; - int sysclk_shift; + unsigned int base; + unsigned int sysclk_reg; + unsigned int sysclk_mask; + unsigned int sysclk_shift; struct list_head alg_regions; |