i2c: iproc: Fix shifting 31 bits
authorRay Jui <ray.jui@broadcom.com>
Fri, 14 Aug 2020 22:40:08 +0000 (15:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:10 +0000 (19:14 +0200)
commit01a28ac6e917d023ca9777256e058f937698541a
tree5e361cf21411807780b9a8bf510a157629d7edfb
parent46653857d015656ff970d763dcb1429a0871b143
i2c: iproc: Fix shifting 31 bits

[ Upstream commit 0204081128d582965e9e39ca83ee6e4f7d27142b ]

Fix undefined behaviour in the iProc I2C driver by using 'BIT' marcro.

Reported-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
[wsa: in commit msg, don't say 'checkpatch' but name the issue]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-bcm-iproc.c