spi: Rename op_mode_rx to mode_rx
authorJagan Teki <jteki@openedev.com>
Wed, 16 Dec 2015 09:54:24 +0000 (15:24 +0530)
committerJagan Teki <jteki@openedev.com>
Wed, 13 Jan 2016 13:17:26 +0000 (18:47 +0530)
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>
drivers/mtd/spi/spi_flash.c
drivers/spi/ich.c
drivers/spi/ti_qspi.c
include/spi.h

index e72abb97ac9b66a279ceb8be96063f3a6cc2b941..5766c187f93d0bddf01949eb1d177bb87494edad 100644 (file)
@@ -1098,7 +1098,7 @@ int spi_flash_scan(struct spi_flash *flash)
        flash->sector_size = flash->erase_size;
 
        /* Look for the fastest read cmd */
-       cmd = fls(params->e_rd_cmd & spi->op_mode_rx);
+       cmd = fls(params->e_rd_cmd & spi->mode_rx);
        if (cmd) {
                cmd = spi_read_cmds_array[cmd - 1];
                flash->read_cmd = cmd;
index 7f417631250ff11c1bd661843c76347f6746e811..59eaaea69396e8082ba373558d37c84f4ab8d53d 100644 (file)
@@ -752,7 +752,7 @@ static int ich_spi_child_pre_probe(struct udevice *dev)
         * and byte program command for SST flash
         */
        if (plat->ich_version == 7) {
-               slave->op_mode_rx = SPI_RX_SLOW;
+               slave->mode_rx = SPI_RX_SLOW;
                slave->mode = SPI_TX_BYTE;
        }
 
index 366243cea7aecd5b0a380f5043c77312b4bf0248..26616ebc7ad60fa067461e3600a37be84c02064d 100644 (file)
@@ -115,7 +115,7 @@ static void ti_spi_setup_spi_register(struct ti_qspi_slave *qslave)
                        QSPI_SETUP0_NUM_D_BYTES_8_BITS |
                        QSPI_SETUP0_READ_QUAD | QSPI_CMD_WRITE |
                        QSPI_NUM_DUMMY_BITS);
-       slave->op_mode_rx = SPI_RX_QUAD;
+       slave->mode_rx = SPI_RX_QUAD;
 #else
        memval |= QSPI_CMD_READ | QSPI_SETUP0_NUM_A_BYTES |
                        QSPI_SETUP0_NUM_D_BYTES_NO_BITS |
index fd095020b29af1e8867f2e1f711baf2a87bbabfb..8dabc3d34931db8df30a7ac827dfef02f5c9ef86 100644 (file)
@@ -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;