diff options
author | Geert Uytterhoeven <geert+renesas@linux-m68k.org> | 2014-01-21 19:10:07 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-21 22:11:49 +0400 |
commit | bd6857a0c630207484a03ddc470fab34b23f80bb (patch) | |
tree | 7e5f3d9fce7421e108fdb817a94d4ae2ab454256 /include/linux/spi | |
parent | 0516712c6548e252adf7aebf70d67842cd734483 (diff) | |
download | linux-bd6857a0c630207484a03ddc470fab34b23f80bb.tar.xz |
spi: Correct set_cs() documentation
The documentation for spi_master.set_cs() says:
assert or deassert chip select, true to assert
i.e. its "enable" parameter uses assertion-level logic.
This does not match the implementation of spi_set_cs(), which calls
spi_master.set_cs() with the wanted logic level of the chip select line,
which depends on the polarity of the chip select signal.
Correct the documentation to match the implementation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r-- | include/linux/spi/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index e766e0e2fe58..9f5242df9311 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -277,7 +277,7 @@ static inline void spi_unregister_driver(struct spi_driver *sdrv) * @unprepare_transfer_hardware: there are currently no more messages on the * queue so the subsystem notifies the driver that it may relax the * hardware by issuing this call - * @set_cs: assert or deassert chip select, true to assert. May be called + * @set_cs: set the logic level of the chip select line. May be called * from interrupt context. * @prepare_message: set up the controller to transfer a single message, * for example doing DMA mapping. Called from threaded |