commit | 54e2fc28d9cf1be7dd2ebe74b20dc20cc2a3e55d | [log] [tgz] |
---|---|---|
author | Baolin Wang <baolin.wang@linaro.org> | Wed Oct 25 19:25:09 2017 +0800 |
committer | Mark Brown <broonie@kernel.org> | Wed Oct 25 14:00:03 2017 +0200 |
tree | 0529a9106aefb1366c480348b81e446e3db585a3 | |
parent | 8955b26d227263a0938daae77f981da927e19513 [diff] |
spi: sprd: Fix the possible negative value of BIT() When enabling the ADI hardware channels, if the channel id is 31, then we will get one negative value -1 for BIT() macro, which will write incorrect value to register. Fixes: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>