Skip to content
Snippets Groups Projects
Commit 440714ee authored by Simon Glass's avatar Simon Glass
Browse files

dm: spi: Set up the spi_slave device pointer in child_pre_probe()


At present we use struct spi_slave as our device pointer in a lot of places
to avoid changing the old SPI API. At some point this will go away.

But for now, it is better if the SPI uclass sets up this pointer, rather
than relying on passing it into the device when it is probed. We can use the
new uclass child_pre_probe() method to do this.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 83c7e434
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment