diff options
author | Christophe Ricard <christophe.ricard@gmail.com> | 2016-01-17 11:56:48 +0100 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2016-02-23 16:14:46 +0530 |
commit | 674f3609aad39f099a5c3605643a6be124504b96 (patch) | |
tree | eedfa14f5f03a2bf5e3374b656a106feb00cc225 /drivers/spi | |
parent | 3963919e5bf8b6fa414168d6bf36177c41bd5478 (diff) |
spi: spi-uclass: Set slave wordlen with SPI_DEFAULT_WORDLEN
In some case wordlen may not be set. Use SPI_DEFAULT_WORDLEN as default.
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-uclass.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 677c020b11..5561f36762 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -158,6 +158,7 @@ static int spi_child_pre_probe(struct udevice *dev) slave->max_hz = plat->max_hz; slave->mode = plat->mode; slave->mode_rx = plat->mode_rx; + slave->wordlen = SPI_DEFAULT_WORDLEN; return 0; } |