diff options
| author | Christophe Ricard <[email protected]> | 2016-01-17 11:56:48 +0100 |
|---|---|---|
| committer | Jagan Teki <[email protected]> | 2016-02-23 16:14:46 +0530 |
| commit | 674f3609aad39f099a5c3605643a6be124504b96 (patch) | |
| tree | eedfa14f5f03a2bf5e3374b656a106feb00cc225 | |
| 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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
| -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 677c020b110..5561f36762f 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; } |
