summaryrefslogtreecommitdiff
path: root/include/spi.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:54 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:16 (GMT)
commit279e26f5a3b865b1a6acf87b404ddec80bc57e63 (patch)
treed013519428f5b9d45b8d86c6af462388a80867c4 /include/spi.h
parent8327d41b19af08a331c62954fafd685426e617f4 (diff)
downloadu-boot-279e26f5a3b865b1a6acf87b404ddec80bc57e63.tar.xz
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>
Diffstat (limited to 'include/spi.h')
-rw-r--r--include/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spi.h b/include/spi.h
index deb65ef..8c4b882 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -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);
/**