diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-01-25 15:36:14 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-27 13:44:35 -0500 |
commit | 18cc0adb132b390d026c574deec29bf182aede51 (patch) | |
tree | 605f8c65d7d23d3b4b8a17595a905bd07992a821 /Documentation/spi/spi-summary | |
parent | 6e5f52674ff0756e61a8879f6232b9ac33735cba (diff) |
spi: document the transfer_one spi_master callback
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'Documentation/spi/spi-summary')
-rw-r--r-- | Documentation/spi/spi-summary | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary index f72e0d1e0da8..dcaad476789c 100644 --- a/Documentation/spi/spi-summary +++ b/Documentation/spi/spi-summary | |||
@@ -545,6 +545,21 @@ SPI MASTER METHODS | |||
545 | spi_finalize_current_message() so the subsystem can issue the next | 545 | spi_finalize_current_message() so the subsystem can issue the next |
546 | transfer. This may sleep. | 546 | transfer. This may sleep. |
547 | 547 | ||
548 | master->transfer_one(struct spi_master *master, struct spi_device *spi, | ||
549 | struct spi_transfer *transfer) | ||
550 | The subsystem calls the driver to transfer a single transfer while | ||
551 | queuing transfers that arrive in the meantime. When the driver is | ||
552 | finished with this transfer, it must call | ||
553 | spi_finalize_current_transfer() so the subsystem can issue the next | ||
554 | transfer. This may sleep. Note: transfer_one and transfer_one_message | ||
555 | are mutually exclusive; when both are set, the generic subsystem does | ||
556 | not call your transfer_one callback. | ||
557 | |||
558 | Return values: | ||
559 | negative errno: error | ||
560 | 0: transfer is finished | ||
561 | 1: transfer is still in progress | ||
562 | |||
548 | DEPRECATED METHODS | 563 | DEPRECATED METHODS |
549 | 564 | ||
550 | master->transfer(struct spi_device *spi, struct spi_message *message) | 565 | master->transfer(struct spi_device *spi, struct spi_message *message) |