diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-05 19:30:18 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-12 08:32:16 +0100 |
commit | 968d444cdd38387882fe7bccac5dd6c8c83685a3 (patch) | |
tree | e24a2ca4d4b730a591ce15ff5b1e7ccca8d0e48c /include/spi | |
parent | d74bef2b04a3ccf7339ba916e56830bb2feae957 (diff) | |
download | barebox-968d444cdd38387882fe7bccac5dd6c8c83685a3.tar.gz barebox-968d444cdd38387882fe7bccac5dd6c8c83685a3.tar.xz |
spi: introduce spi_get_master
so we can request a master usefull for the spi command
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/spi')
-rw-r--r-- | include/spi/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spi/spi.h b/include/spi/spi.h index 1773ca22e5..d6570a402c 100644 --- a/include/spi/spi.h +++ b/include/spi/spi.h @@ -432,6 +432,8 @@ static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) extern struct bus_type spi_bus; +struct spi_master *spi_get_master(int bus); + static inline int spi_register_driver(struct driver_d *drv) { drv->bus = &spi_bus; |