spi: loopback-test: rename method spi_test_fill_tx to spi_test_fill_pattern
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 22 Dec 2015 18:03:22 +0000 (18:03 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 19:05:23 +0000 (19:05 +0000)
Rename method spi_test_fill_tx to spi_test_fill_pattern
to better describe what it does.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c

index 8af2e4070153b76f6261980e4c1d1da039429b04..81fa9068df4312e02a053a2b0ddb73feba13af70 100644 (file)
@@ -574,7 +574,8 @@ static int spi_test_translate(struct spi_device *spi,
        return -EINVAL;
 }
 
-static int spi_test_fill_tx(struct spi_device *spi, struct spi_test *test)
+static int spi_test_fill_pattern(struct spi_device *spi,
+                                struct spi_test *test)
 {
        struct spi_transfer *xfers = test->transfers;
        u8 *tx_buf;
@@ -691,8 +692,8 @@ static int _spi_test_run_iter(struct spi_device *spi,
                spi_message_add_tail(x, msg);
        }
 
-       /* fill in the transfer data */
-       ret = spi_test_fill_tx(spi, test);
+       /* fill in the transfer buffers with pattern */
+       ret = spi_test_fill_pattern(spi, test);
        if (ret)
                return ret;