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>
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;
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;