mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
spi: Initialise all propertis of spi_slave
All properties of spi_slave as defined in spi.h are initialised to avoid junk values. Change-Id: I154bddccb12fe7e5c4787e870927610de85cda1c Signed-off-by: Akila N <akilan@codeaurora.org>
This commit is contained in:
parent
e34c2dc55e
commit
fa61274d27
1 changed files with 4 additions and 0 deletions
|
|
@ -176,8 +176,12 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
|||
}
|
||||
ds->slave.bus = bus;
|
||||
ds->slave.cs = cs;
|
||||
|
||||
ds->slave.memory_map = NULL;
|
||||
ds->slave.option = 0;
|
||||
ds->slave.max_write_size = 0;
|
||||
ds->slave.op_mode_rx = 0;
|
||||
ds->slave.op_mode_tx = 0;
|
||||
|
||||
ds->regs = &spi_reg[bus];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue