diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-20 14:54:24 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-08-22 14:00:28 -0400 |
commit | 363947d7d999f74dfd710fb7b7ccad965590f098 (patch) | |
tree | 8828d6a49286a6a5a8875446d7b264dcfde491c7 /sound | |
parent | 3eadd88a37c330a83bfdee35b3e5837b7c2f7214 (diff) |
ASoC: wm_hubs: Use explicit casts for converting to signed
Should be no behaviour change.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm_hubs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index 05a02e1b7e92..b340552efe4e 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c | |||
@@ -297,12 +297,12 @@ static void enable_dc_servo(struct snd_soc_codec *codec) | |||
297 | hubs->dcs_codes_l, hubs->dcs_codes_r); | 297 | hubs->dcs_codes_l, hubs->dcs_codes_r); |
298 | 298 | ||
299 | /* HPOUT1R */ | 299 | /* HPOUT1R */ |
300 | offset = reg_r; | 300 | offset = (s8)reg_r; |
301 | offset += hubs->dcs_codes_r; | 301 | offset += hubs->dcs_codes_r; |
302 | dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; | 302 | dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; |
303 | 303 | ||
304 | /* HPOUT1L */ | 304 | /* HPOUT1L */ |
305 | offset = reg_l; | 305 | offset = (s8)reg_l; |
306 | offset += hubs->dcs_codes_l; | 306 | offset += hubs->dcs_codes_l; |
307 | dcs_cfg |= (u8)offset; | 307 | dcs_cfg |= (u8)offset; |
308 | 308 | ||