Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: wm_hubs: Use explicit casts for converting to signed

Should be no behaviour change.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

+2 -2
+2 -2
sound/soc/codecs/wm_hubs.c
··· 297 297 hubs->dcs_codes_l, hubs->dcs_codes_r); 298 298 299 299 /* HPOUT1R */ 300 - offset = reg_r; 300 + offset = (s8)reg_r; 301 301 offset += hubs->dcs_codes_r; 302 302 dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; 303 303 304 304 /* HPOUT1L */ 305 - offset = reg_l; 305 + offset = (s8)reg_l; 306 306 offset += hubs->dcs_codes_l; 307 307 dcs_cfg |= (u8)offset; 308 308