]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Correct set_cs() documentation
authorGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Tue, 21 Jan 2014 15:10:07 +0000 (16:10 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 21 Jan 2014 18:11:49 +0000 (18:11 +0000)
commite1c9cf1572d5ca792611df868af11753f7b79a10
tree7e5f3d9fce7421e108fdb817a94d4ae2ab454256
parent5667c502c7712d258f5a550f4d5b6c11dca0a1c7
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>
include/linux/spi/spi.h