diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-24 19:56:21 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-14 13:35:47 +0200 |
commit | 5888a3b5c96cf8381431486416ef2667993c85fc (patch) | |
tree | ed8e411495d0f31cf3ab5867c542bef7874a1050 /include/spi | |
parent | ca77bd8f034d0f20edad7b04990b1ddf2e442e5b (diff) | |
download | barebox-5888a3b5c96cf8381431486416ef2667993c85fc.tar.gz barebox-5888a3b5c96cf8381431486416ef2667993c85fc.tar.xz |
spi: add oftree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r-- | include/spi/spi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h index 569cdcdd99..1773ca22e5 100644 --- a/include/spi/spi.h +++ b/include/spi/spi.h @@ -17,6 +17,7 @@ struct spi_board_info { u8 mode; u8 bits_per_word; void *platform_data; + struct device_node *device_node; }; /** @@ -163,6 +164,8 @@ struct spi_master { /* called on release() to free memory provided by spi_master */ void (*cleanup)(struct spi_device *spi); + + struct list_head list; }; /*---------------------------------------------------------------------------*/ @@ -434,4 +437,7 @@ static inline int spi_register_driver(struct driver_d *drv) drv->bus = &spi_bus; return register_driver(drv); } + +void spi_of_register_slaves(struct spi_master *master, struct device_node *node); + #endif /* __INCLUDE_SPI_H */ |