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:
@@ -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);
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user