]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: adau1977: Fix truncation warning on 64 bit architectures
authorMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 16:19:00 +0000 (17:19 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 4 Aug 2014 13:29:45 +0000 (14:29 +0100)
commitf6865d06e22a479544b8ef41480701881a56c70f
tree7df916d836acd621ea76a6215031ac9a8a092e37
parent081ef54181a1ff0d2c7e189052277797ff8dd0dd
ASoC: adau1977: Fix truncation warning on 64 bit architectures

Negating ADAU1977_BLOCK_POWER_SAI_LDO_EN creates an unsigned long constant
with all bits set which on 64 bit architectures needs to be truncated to
an unsigned int, generating a warning. Add an explicit cast since we know
this is OK.

Signed-off-by: Mark Brown <broonie@linaro.org>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
sound/soc/codecs/adau1977.c