mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 02:08:00 +00:00
dm: spi: Convert uclass to livetree
Update the SPI uclass to support a live device tree. Also adjust spi_slave_ofdata_to_platdata() to accept a device instead of a blob and offset. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8327d41b19
commit
279e26f5a3
2 changed files with 15 additions and 18 deletions
|
@ -562,7 +562,7 @@ int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp);
|
|||
* @node: Node offset to read from
|
||||
* @plat: Place to put the decoded information
|
||||
*/
|
||||
int spi_slave_ofdata_to_platdata(const void *blob, int node,
|
||||
int spi_slave_ofdata_to_platdata(struct udevice *dev,
|
||||
struct dm_spi_slave_platdata *plat);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue