i2c: iproc: Fix shifting 31 bits
authorRay Jui <ray.jui@broadcom.com>
Fri, 14 Aug 2020 22:40:08 +0000 (15:40 -0700)
committerWolfram Sang <wsa@kernel.org>
Tue, 25 Aug 2020 07:46:38 +0000 (09:46 +0200)
commit0204081128d582965e9e39ca83ee6e4f7d27142b
tree05b5dac3fa145f9f7a3c9ed7edf089907af3e41a
parent914a7b3563b8fb92f976619bbd0fa3a4a708baae
i2c: iproc: Fix shifting 31 bits

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>
drivers/i2c/busses/i2c-bcm-iproc.c