summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-10 22:14:09 +0530
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-10-16 00:14:00 +0530
commit469146c0977436c0803590ef6a0de368cab5b946 (patch)
tree3030c115b763cafa5c338a63ce95ee9f9e7c5526 /include
parent6152dd15283dbc3bb65ff02d6faad7ef9ef7f7bc (diff)
downloadu-boot-imx-469146c0977436c0803590ef6a0de368cab5b946.zip
u-boot-imx-469146c0977436c0803590ef6a0de368cab5b946.tar.gz
u-boot-imx-469146c0977436c0803590ef6a0de368cab5b946.tar.bz2
sf: Minor cleanups.
- Add comments. - Renamed few macros. - Add tabs. Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com> Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'include')
-rw-r--r--include/spi.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/spi.h b/include/spi.h
index 5164d43..ad9248b 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -1,4 +1,6 @@
/*
+ * Common SPI Interface: Controller-specific definitions
+ *
* (C) Copyright 2001
* Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.
*
@@ -8,8 +10,6 @@
#ifndef _SPI_H_
#define _SPI_H_
-/* Controller-specific definitions: */
-
/* SPI mode flags */
#define SPI_CPHA 0x01 /* clock phase */
#define SPI_CPOL 0x02 /* clock polarity */
@@ -241,11 +241,11 @@ static inline int spi_w8r8(struct spi_slave *slave, unsigned char byte)
* This calls spi_setup_slave() with the correct bus number. Call
* spi_free_slave() to free it later.
*
- * @param blob Device tree blob
- * @param node SPI peripheral node to use
- * @param cs Chip select to use
- * @param max_hz Maximum SCK rate in Hz (0 for default)
- * @param mode Clock polarity, clock phase and other parameters
+ * @param blob: Device tree blob
+ * @param node: SPI peripheral node to use
+ * @param cs: Chip select to use
+ * @param max_hz: Maximum SCK rate in Hz (0 for default)
+ * @param mode: Clock polarity, clock phase and other parameters
* @return pointer to new spi_slave structure
*/
struct spi_slave *spi_setup_slave_fdt(const void *blob, int node,