From: Mark Brown Date: Mon, 20 Aug 2012 18:54:24 +0000 (+0100) Subject: ASoC: wm_hubs: Use explicit casts for converting to signed X-Git-Tag: next-20120823~53^2~1^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=363947d7d999f74dfd710fb7b7ccad965590f098;p=karo-tx-linux.git ASoC: wm_hubs: Use explicit casts for converting to signed Should be no behaviour change. Signed-off-by: Mark Brown --- 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) hubs->dcs_codes_l, hubs->dcs_codes_r); /* HPOUT1R */ - offset = reg_r; + offset = (s8)reg_r; offset += hubs->dcs_codes_r; dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; /* HPOUT1L */ - offset = reg_l; + offset = (s8)reg_l; offset += hubs->dcs_codes_l; dcs_cfg |= (u8)offset;