spi: document odd controller reference handling
authorJohan Hovold <johan@kernel.org>
Mon, 30 Oct 2017 10:35:26 +0000 (11:35 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 31 Oct 2017 11:09:43 +0000 (11:09 +0000)
commit68b892f1fdc493d7cd4e4067596879cd097c1f62
tree2239373187c97df66d42397dd922c113c8a84ffa
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
spi: document odd controller reference handling

Document the fact that a reference to the controller is dropped as part
of deregistration.

This is an odd pattern as the reference is typically taken in
__spi_alloc_controller() rather than spi_register_controller(). Most
controller drivers gets it right these days and notably the
device-managed interface relies on this behaviour.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c