aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBrian Niebuhr <bniebuhr@efjohnson.com>2010-10-06 09:02:40 -0400
committerSekhar Nori <nsekhar@ti.com>2010-11-18 08:08:37 -0500
commit035540f6ea2394bdd9675552d31e1125cd0e402e (patch)
tree2e8673d2920cd473aef270e05f4520456d5c3090 /drivers
parentd8c174cdeb6511aa307e6058468b68a9cc3990e4 (diff)
spi: davinci: add additional comments
Add comments describing the platform data members and per-chip-select SPI configuration structure. Also, add some comments describing the what happens during the driver probe. Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com> Tested-By: Michael Williamson <michael.williamson@criticallink.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/davinci_spi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 2ec5fd2f2e7b..f40f1be1528a 100644
--- a/drivers/spi/davinci_spi.c
+++ b/drivers/spi/davinci_spi.c
@@ -787,6 +787,13 @@ rx_dma_failed:
787/** 787/**
788 * davinci_spi_probe - probe function for SPI Master Controller 788 * davinci_spi_probe - probe function for SPI Master Controller
789 * @pdev: platform_device structure which contains plateform specific data 789 * @pdev: platform_device structure which contains plateform specific data
790 *
791 * According to Linux Device Model this function will be invoked by Linux
792 * with platform_device struct which contains the device specific info.
793 * This function will map the SPI controller's memory, register IRQ,
794 * Reset SPI controller and setting its registers to default value.
795 * It will invoke spi_bitbang_start to create work queue so that client driver
796 * can register transfer method to work queue.
790 */ 797 */
791static int davinci_spi_probe(struct platform_device *pdev) 798static int davinci_spi_probe(struct platform_device *pdev)
792{ 799{