summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJagan Teki <jteki@openedev.com>2015-12-16 15:24:24 +0530
committerJagan Teki <jteki@openedev.com>2016-01-13 18:47:26 +0530
commit91292e0bee9e59f029f7d1039fe5f2914b31ea85 (patch)
tree111bc690b13de9e7f15b545c02aff7d6740bd7f2 /include
parente5961f07068443bf55a8a71ef04e7364583e495a (diff)
downloadu-boot-91292e0bee9e59f029f7d1039fe5f2914b31ea85.tar.gz
u-boot-91292e0bee9e59f029f7d1039fe5f2914b31ea85.tar.xz
u-boot-91292e0bee9e59f029f7d1039fe5f2914b31ea85.zip
spi: Rename op_mode_rx to mode_rx
Since spi rx mode macro's are renamed to simple and meaninfull, this patch will rename the respective structure members. Cc: Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Tested-by: Mugunthan V N <mugunthanvnm@ti.com> Tested-by: Jagan Teki <jteki@openedev.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include')
-rw-r--r--include/spi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/spi.h b/include/spi.h
index fd095020b2..8dabc3d349 100644
--- a/include/spi.h
+++ b/include/spi.h
@@ -34,7 +34,7 @@
#define SPI_XFER_ONCE (SPI_XFER_BEGIN | SPI_XFER_END)
#define SPI_XFER_U_PAGE (1 << 5)
-/* SPI RX operation modes */
+/* SPI mode_rx flags */
#define SPI_RX_SLOW (1 << 0)
#define SPI_RX_FAST (1 << 1)
#define SPI_RX_DUAL (1 << 2)
@@ -99,7 +99,7 @@ struct dm_spi_slave_platdata {
* bus (bus->seq) so does not need to be stored
* @cs: ID of the chip select connected to the slave.
* @mode: SPI mode to use for this slave (see SPI mode flags)
- * @op_mode_rx: SPI RX operation mode.
+ * @mode_rx: SPI RX mode to use for this slave (see SPI mode_rx flags)
* @wordlen: Size of SPI word in number of bits
* @max_write_size: If non-zero, the maximum number of bytes which can
* be written at once, excluding command bytes.
@@ -117,7 +117,7 @@ struct spi_slave {
unsigned int cs;
#endif
uint mode;
- u8 op_mode_rx;
+ u8 mode_rx;
unsigned int wordlen;
unsigned int max_write_size;
void *memory_map;