]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4688e56c208e947ec2209c0f4556b8fdf2963552
tree05b5dac3fa145f9f7a3c9ed7edf089907af3e41a
parent667824f8c19ad6b24a9254465c4c72aabd9c2fa8
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