]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: fix regwmask
author이경택 <gt82.lee@samsung.com>
Mon, 30 Mar 2020 07:35:59 +0000 (16:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 14:11:58 +0000 (16:11 +0200)
commit758cd462c13b84675c0a988ece7c5a232e1260f6
tree7cc98034badc3126eaf35aea6f0092fb68edd738
parent111f5ccc089a0ad8387da42f3f40ea5c8cd1c9b6
ASoC: fix regwmask

commit 0ab070917afdc93670c2d0ea02ab6defb6246a7c upstream.

If regwshift is 32 and the selected architecture compiles '<<' operator
for signed int literal into rotating shift, '1<<regwshift' became 1 and
it makes regwmask to 0x0.
The literal is set to unsigned long to get intended regwmask.

Signed-off-by: Gyeongtaek Lee <gt82.lee@samsung.com>
Link: https://lore.kernel.org/r/001001d60665$db7af3e0$9270dba0$@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-ops.c