commit | e3a49390ebefec6f7e3d447b5ba3ba253dd51145 | [log] [tgz] |
---|---|---|
author | Gao Pan <pandy.gao@nxp.com> | Thu Nov 24 19:04:43 2016 +0800 |
committer | Mark Brown <broonie@kernel.org> | Fri Nov 25 13:04:42 2016 +0000 |
tree | 20db3096f3560b816c88d47c220ea608dd48d4f2 | |
parent | 3ffa1a5dc696f661754bf145813433fda92371b2 [diff] |
spi: imx: fix potential shift truncation There is a static checker warning in fsl_lpspi_set_cmd(). I intended to write "temp |= (fsl_lpspi->config.mode & 0x3) << 30", but used "temp |= (fsl_lpspi->config.mode & 0x11) << 30" by mistake. This patch fixes this potential shift truncation. Signed-off-by: Gao Pan <pandy.gao@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>