UPSTREAM: spi: rockchip: covert rsd_nsecs to u32 type
authorShawn Lin <shawn.lin@rock-chips.com>
Thu, 10 Mar 2016 06:52:27 +0000 (14:52 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 16 Jun 2016 12:58:18 +0000 (20:58 +0800)
commit5edbaec5862c45d7f74da2c117063e7359ad80a5
treee5575d0be9d3fcac159ee52b9e2e18e3f660cf63
parenta83faa347d9e24d1b7dc4dfb93129c17bfe6668d
UPSTREAM: spi: rockchip: covert rsd_nsecs to u32 type

rsd_nsecs is defined as u8 memeber of struct rockchip_spi,
but using of_property_read_u32. That means we take risk of
truncation by type conversion if we pass on big value from
dt.

Change-Id: I4d3e29b64749ac8a86782413d0f41691b9ff4e84
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
(cherry picked from git.kernel.org next/linux-next.git master
 commit 108b5c8bba6be101100596bf37a165214e1c8458)
drivers/spi/spi-rockchip.c