Commit 363947d7 authored by Mark Brown's avatar Mark Brown

ASoC: wm_hubs: Use explicit casts for converting to signed

Should be no behaviour change.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 3eadd88a
...@@ -297,12 +297,12 @@ static void enable_dc_servo(struct snd_soc_codec *codec) ...@@ -297,12 +297,12 @@ static void enable_dc_servo(struct snd_soc_codec *codec)
hubs->dcs_codes_l, hubs->dcs_codes_r); hubs->dcs_codes_l, hubs->dcs_codes_r);
/* HPOUT1R */ /* HPOUT1R */
offset = reg_r; offset = (s8)reg_r;
offset += hubs->dcs_codes_r; offset += hubs->dcs_codes_r;
dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT;
/* HPOUT1L */ /* HPOUT1L */
offset = reg_l; offset = (s8)reg_l;
offset += hubs->dcs_codes_l; offset += hubs->dcs_codes_l;
dcs_cfg |= (u8)offset; dcs_cfg |= (u8)offset;
......
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