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, 24 Apr 2020 06:00:32 +0000 (08:00 +0200)
commitbfe67beb9ef1c50e1fddc309aaec7c4c49dcfe75
tree5dc9e382365f060cec5a6fe16307e45c830bbe75
parent2a77146ab15518e6090a4e4b5a64e9a1436e42cf
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